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

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
              extended by edu.rice.cs.drjava.model.GlobalModelTestCase.JUnitTestListener
                  extended by edu.rice.cs.drjava.model.GlobalModelTestCase.JUnitNonTestListener
All Implemented Interfaces:
CompilerListener, GlobalModelListener, JavadocListener, JUnitListener, InteractionsListener
Enclosing class:
GlobalModelTestCase

public static class GlobalModelTestCase.JUnitNonTestListener
extends GlobalModelTestCase.JUnitTestListener

Listener class for failing JUnit invocation.


Field Summary
private  boolean _shouldBeTestAll
           
 
Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.JUnitTestListener
_junitDone, _junitLock, printMessages
 
Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
_startupTrace, activeCompilerChangedCount, canAbandonCount, classFileErrorCount, closeCount, compileBeforeJavadocCount, compileBeforeJUnitCount, compileEndCount, compileStartCount, consoleResetCount, fileNotFoundCount, filePathContainsPoundCount, fileRevertedCount, hasClearedEventQueue, 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.JUnitNonTestListener()
           
GlobalModelTestCase.JUnitNonTestListener(boolean shouldBeTestAll)
           
 
Method Summary
 void nonTestCase(boolean isTestAll, boolean didCompileFail)
          Called when trying to test a non-TestCase class.
 
Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.JUnitTestListener
_notifyJUnitDone, classFileError, junitEnded, junitStarted, junitSuiteStarted, junitTestEnded, junitTestStarted, logJUnitStart, resetCompileCounts, resetJUnitCounts, runJUnit, runJUnit, waitJUnitDone
 
Methods inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase.CompileShouldSucceedListener
activeCompilerChanged, checkCompileOccurred, compile, compileAborted, compileEnded, compileStarted, logCompileStart, newFileCreated, 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, allFilesClosed, assertAbandonCount, assertActiveCompilerChangedCount, assertClassFileErrorCount, assertCloseCount, assertCompileBeforeJavadocCount, 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, compileBeforeJavadoc, compileBeforeJUnit, currentDirectoryChanged, documentNotFound, executeAsyncTask, fileClosed, fileOpened, filePathContainsPound, fileReverted, fileSaved, filesNotFound, filesReadOnly, focusOnDefinitionsPane, focusOnLastFocusOwner, handleAlreadyOpenDocument, interactionErrorOccurred, interactionIncomplete, interpreterChanged, interpreterResetFailed, javadocEnded, javadocStarted, junitClassesStarted, listenerFail, openProject, prepareForRun, projectBuildDirChanged, projectClosed, projectModified, projectRunnableChanged, projectWorkDirChanged, quitFile, resetCounts, saveBeforeCompile, saveBeforeJavadoc, saveUntitled, shouldRevertFile, undoableEditHappened, updateCurrentLocationInDoc
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_shouldBeTestAll

private volatile boolean _shouldBeTestAll
Constructor Detail

GlobalModelTestCase.JUnitNonTestListener

public GlobalModelTestCase.JUnitNonTestListener()

GlobalModelTestCase.JUnitNonTestListener

public GlobalModelTestCase.JUnitNonTestListener(boolean shouldBeTestAll)
Method Detail

nonTestCase

public void nonTestCase(boolean isTestAll,
                        boolean didCompileFail)
Description copied from interface: JUnitListener
Called when trying to test a non-TestCase class.

Specified by:
nonTestCase in interface JUnitListener
Overrides:
nonTestCase in class GlobalModelTestCase.JUnitTestListener
Parameters:
isTestAll - whether or not it was a use of the test all button
didCompileFail - whether or not a compile before this JUnit attempt failed