edu.rice.cs.drjava.model
Class GlobalModelTestCase.CompileShouldFailListener

java.lang.Object
  extended by edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
      extended by edu.rice.cs.drjava.model.GlobalModelTestCase.CompileShouldFailListener
All Implemented Interfaces:
CompilerListener, GlobalModelListener, JavadocListener, JUnitListener, InteractionsListener
Enclosing class:
GlobalModelTestCase

public static class GlobalModelTestCase.CompileShouldFailListener
extends GlobalModelTestCase.TestListener

A model listener for situations expecting a compilation to fail.


Field Summary
 
Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
_startupTrace, activeCompilerChangedCount, canAbandonCount, classFileErrorCount, closeCount, compileBeforeJUnitCount, compileEndCount, compileStartCount, consoleResetCount, fileNotFoundCount, filePathContainsPoundCount, fileRevertedCount, interactionEndCount, interactionErrorCount, interactionIncompleteCount, interactionStartCount, interpreterChangedCount, interpreterExitedCount, interpreterReadyCount, interpreterResetFailedCount, interpreterResettingCount, junitEndCount, junitStartCount, junitSuiteStartedCount, junitTestEndedCount, junitTestStartedCount, lastExitStatus, newCount, nonTestCaseCount, openCount, quitFileCount, runStartCount, saveBeforeCompileCount, saveBeforeJavadocCount, saveCount, shouldRevertFileCount, undoableEditCount
 
Constructor Summary
GlobalModelTestCase.CompileShouldFailListener()
           
 
Method Summary
 void checkCompileOccurred()
           
 void compile(OpenDefinitionsDocument doc)
           
 void compileAborted(Exception e)
          Called if a compilation is aborted.
 void compileEnded(File workDir, List<? extends File> excludedFiles)
          Called when a compile has finished running.
 void compileStarted()
          Called after a compile is started by the GlobalModel.
 void logCompileStart()
           
 void waitCompileDone()
           
 
Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
activeCompilerChanged, activeDocumentChanged, activeDocumentRefreshed, assertAbandonCount, assertActiveCompilerChangedCount, assertClassFileErrorCount, assertCloseCount, assertCompileBeforeJUnitCount, assertCompileEndCount, assertCompileStartCount, assertConsoleResetCount, assertFileNotFoundCount, assertFileRevertedCount, assertInteractionEndCount, assertInteractionErrorCount, assertInteractionIncompleteCount, assertInteractionsErrorCount, assertInteractionStartCount, assertInterpreterChangedCount, assertInterpreterExitedCount, assertInterpreterReadyCount, assertInterpreterResetFailedCount, assertInterpreterResettingCount, assertJUnitEndCount, assertJUnitStartCount, assertJUnitSuiteStartedCount, assertJUnitTestEndedCount, assertJUnitTestStartedCount, assertNewCount, assertNonTestCaseCount, assertOpenCount, assertQuitFileCount, assertRunStartCount, assertSaveBeforeCompileCount, assertSaveBeforeJavadocCount, assertSaveCount, assertShouldRevertFileCount, assertUndoableEditCount, browserChanged, canAbandonFile, classFileError, compileBeforeJUnit, consoleReset, currentDirectoryChanged, documentNotFound, executeAsyncTask, fileClosed, fileOpened, filePathContainsPound, fileReverted, fileSaved, filesNotFound, filesReadOnly, focusOnDefinitionsPane, focusOnLastFocusOwner, handleAlreadyOpenDocument, interactionEnded, interactionErrorOccurred, interactionIncomplete, interactionStarted, interpreterChanged, interpreterExited, interpreterReady, interpreterResetFailed, interpreterResetting, javadocEnded, javadocStarted, junitClassesStarted, junitEnded, junitStarted, junitSuiteStarted, junitTestEnded, junitTestStarted, listenerFail, newFileCreated, nonTestCase, openProject, prepareForRun, projectBuildDirChanged, projectClosed, projectModified, projectRunnableChanged, projectWorkDirChanged, quitFile, resetCounts, saveBeforeCompile, saveBeforeJavadoc, saveUntitled, shouldRevertFile, slaveJVMUsed, undoableEditHappened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobalModelTestCase.CompileShouldFailListener

public GlobalModelTestCase.CompileShouldFailListener()
Method Detail

logCompileStart

public void logCompileStart()

waitCompileDone

public void waitCompileDone()
                     throws InterruptedException
Throws:
InterruptedException

compile

public void compile(OpenDefinitionsDocument doc)
             throws IOException,
                    InterruptedException
Throws:
IOException
InterruptedException

compileStarted

public void compileStarted()
Description copied from interface: CompilerListener
Called after a compile is started by the GlobalModel.

Specified by:
compileStarted in interface CompilerListener
Overrides:
compileStarted in class GlobalModelTestCase.TestListener

compileEnded

public void compileEnded(File workDir,
                         List<? extends File> excludedFiles)
Description copied from interface: CompilerListener
Called when a compile has finished running.

Specified by:
compileEnded in interface CompilerListener
Overrides:
compileEnded in class GlobalModelTestCase.TestListener

compileAborted

public void compileAborted(Exception e)
Description copied from interface: CompilerListener
Called if a compilation is aborted.

Specified by:
compileAborted in interface CompilerListener
Overrides:
compileAborted in class GlobalModelTestCase.TestListener

checkCompileOccurred

public void checkCompileOccurred()