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

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

public static class GlobalModelTestCase.InteractionListener
extends GlobalModelTestCase.TestListener


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.InteractionListener()
           
 
Method Summary
 void consoleReset()
          Called when the console window is reset.
 int getLastExitStatus()
           
 void interactionEnded()
          Called when an interaction has ended.
 void interactionStarted()
          Relying on the default constructor.
 void interpreterExited(int status)
          Called when the interpreter exits unexpectedly.
 void interpreterReady(File wd)
          Called when the interpreter is ready to use.
 void interpreterResetting()
          Called when the interpreter has begun resetting.
 void logInteractionStart()
           
 void resetConsoleResetCount()
           
 void waitInteractionDone()
           
 void waitResetDone()
           
 
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, compileAborted, compileBeforeJUnit, compileEnded, compileStarted, 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, 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.InteractionListener

public GlobalModelTestCase.InteractionListener()
Method Detail

interactionStarted

public void interactionStarted()
Relying on the default constructor.

Specified by:
interactionStarted in interface InteractionsListener
Overrides:
interactionStarted in class GlobalModelTestCase.TestListener

interactionEnded

public void interactionEnded()
Description copied from interface: InteractionsListener
Called when an interaction has ended.

Specified by:
interactionEnded in interface InteractionsListener
Overrides:
interactionEnded in class GlobalModelTestCase.TestListener

interpreterExited

public void interpreterExited(int status)
Description copied from interface: InteractionsListener
Called when the interpreter exits unexpectedly.

Specified by:
interpreterExited in interface InteractionsListener
Overrides:
interpreterExited in class GlobalModelTestCase.TestListener
Parameters:
status - the exit code

interpreterResetting

public void interpreterResetting()
Description copied from interface: InteractionsListener
Called when the interpreter has begun resetting.

Specified by:
interpreterResetting in interface InteractionsListener
Overrides:
interpreterResetting in class GlobalModelTestCase.TestListener

interpreterReady

public void interpreterReady(File wd)
Description copied from interface: InteractionsListener
Called when the interpreter is ready to use.

Specified by:
interpreterReady in interface InteractionsListener
Overrides:
interpreterReady in class GlobalModelTestCase.TestListener

consoleReset

public void consoleReset()
Description copied from interface: GlobalModelListener
Called when the console window is reset.

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

resetConsoleResetCount

public void resetConsoleResetCount()

logInteractionStart

public void logInteractionStart()

waitInteractionDone

public void waitInteractionDone()
                         throws InterruptedException
Throws:
InterruptedException

waitResetDone

public void waitResetDone()
                   throws InterruptedException
Throws:
InterruptedException

getLastExitStatus

public int getLastExitStatus()