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

java.lang.Object
  extended by edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
      extended by edu.rice.cs.drjava.model.GlobalModelTestCase.InteractionListener
          extended by edu.rice.cs.drjava.model.GlobalModelTestCase.CompileShouldSucceedListener
All Implemented Interfaces:
CompilerListener, GlobalModelListener, JavadocListener, JUnitListener, InteractionsListener
Direct Known Subclasses:
GlobalModelTestCase.JUnitTestListener
Enclosing class:
GlobalModelTestCase

public static class GlobalModelTestCase.CompileShouldSucceedListener
extends GlobalModelTestCase.InteractionListener

A model listener for situations expecting a compilation to succeed.


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.CompileShouldSucceedListener()
           
 
Method Summary
 void activeCompilerChanged()
          Called after the active compiler has been changed.
 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 newFileCreated(OpenDefinitionsDocument doc)
          Called after a new document is created.
 void waitCompileDone()
           
 
Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.InteractionListener
consoleReset, getLastExitStatus, interactionEnded, interactionStarted, interpreterExited, interpreterReady, interpreterResetting, logInteractionStart, resetConsoleResetCount, waitInteractionDone, waitResetDone
 
Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
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, currentDirectoryChanged, documentNotFound, executeAsyncTask, fileClosed, fileOpened, filePathContainsPound, fileReverted, fileSaved, filesNotFound, filesReadOnly, focusOnDefinitionsPane, focusOnLastFocusOwner, handleAlreadyOpenDocument, interactionErrorOccurred, interactionIncomplete, interpreterChanged, interpreterResetFailed, javadocEnded, javadocStarted, junitClassesStarted, junitEnded, junitStarted, junitSuiteStarted, junitTestEnded, junitTestStarted, listenerFail, 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.CompileShouldSucceedListener

public GlobalModelTestCase.CompileShouldSucceedListener()
Method Detail

logCompileStart

public void logCompileStart()

compile

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

waitCompileDone

public void waitCompileDone()
                     throws InterruptedException
Throws:
InterruptedException

newFileCreated

public void newFileCreated(OpenDefinitionsDocument doc)
Description copied from interface: GlobalModelListener
Called after a new document is created.

Specified by:
newFileCreated in interface GlobalModelListener
Overrides:
newFileCreated in class GlobalModelTestCase.TestListener

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

activeCompilerChanged

public void activeCompilerChanged()
Description copied from interface: CompilerListener
Called after the active compiler has been changed.

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

checkCompileOccurred

public void checkCompileOccurred()