|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
edu.rice.cs.drjava.model.GlobalModelTestCase.InteractionListener
edu.rice.cs.drjava.model.GlobalModelTestCase.CompileShouldSucceedListener
edu.rice.cs.drjava.model.GlobalModelTestCase.JUnitTestListener
public static class GlobalModelTestCase.JUnitTestListener
Field Summary | |
---|---|
protected boolean |
_junitDone
|
protected Object |
_junitLock
|
protected boolean |
printMessages
|
Constructor Summary | |
---|---|
GlobalModelTestCase.JUnitTestListener()
Construct JUnitTestListener without resetting interactions |
|
GlobalModelTestCase.JUnitTestListener(boolean printListenerMessages)
|
Method Summary | |
---|---|
void |
classFileError(ClassFileError e)
Called when JUnit encounters an illegal class file. |
void |
junitEnded()
Called after JUnit is finished running tests. |
void |
junitStarted()
Called after JUnit is started by the GlobalModel. |
void |
junitSuiteStarted(int numTests)
Called to indicate that a suite of tests has started running. |
void |
junitTestEnded(String name,
boolean wasSuccessful,
boolean causedError)
Called when a particular test has ended. |
void |
junitTestStarted(String name)
Called when a particular test is started. |
void |
logJUnitStart()
|
void |
nonTestCase(boolean isTestAll)
Called when trying to test a non-TestCase class. |
void |
resetCompileCounts()
|
void |
resetJUnitCounts()
|
void |
runJUnit(JUnitModel jm)
|
void |
runJUnit(OpenDefinitionsDocument doc)
Runs JUnit on doc to completion. |
void |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected volatile boolean _junitDone
protected final Object _junitLock
protected volatile boolean printMessages
Constructor Detail |
---|
public GlobalModelTestCase.JUnitTestListener()
public GlobalModelTestCase.JUnitTestListener(boolean printListenerMessages)
Method Detail |
---|
public void logJUnitStart()
public void runJUnit(OpenDefinitionsDocument doc) throws IOException, ClassNotFoundException, InterruptedException
IOException
ClassNotFoundException
InterruptedException
public void runJUnit(JUnitModel jm) throws IOException, ClassNotFoundException, InterruptedException
IOException
ClassNotFoundException
InterruptedException
public void waitJUnitDone() throws InterruptedException
InterruptedException
public void resetCompileCounts()
public void resetJUnitCounts()
public void junitStarted()
JUnitListener
junitStarted
in interface JUnitListener
junitStarted
in class GlobalModelTestCase.TestListener
public void junitSuiteStarted(int numTests)
JUnitListener
junitSuiteStarted
in interface JUnitListener
junitSuiteStarted
in class GlobalModelTestCase.TestListener
numTests
- The number of tests in the suite to be run.public void junitTestStarted(String name)
JUnitListener
junitTestStarted
in interface JUnitListener
junitTestStarted
in class GlobalModelTestCase.TestListener
name
- The name of the test being started.public void junitTestEnded(String name, boolean wasSuccessful, boolean causedError)
JUnitListener
junitTestEnded
in interface JUnitListener
junitTestEnded
in class GlobalModelTestCase.TestListener
name
- The name of the test that has ended.wasSuccessful
- Whether the test passed or not.causedError
- If not successful, whether the test caused an error or simply failed.public void nonTestCase(boolean isTestAll)
JUnitListener
nonTestCase
in interface JUnitListener
nonTestCase
in class GlobalModelTestCase.TestListener
isTestAll
- whether or not it was a use of the test all buttonpublic void classFileError(ClassFileError e)
JUnitListener
classFileError
in interface JUnitListener
classFileError
in class GlobalModelTestCase.TestListener
e
- the error or exception thrown by loading and resolving f.public void junitEnded()
JUnitListener
junitEnded
in interface JUnitListener
junitEnded
in class GlobalModelTestCase.TestListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |