|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JUnitListener
An interface for responding to events generated by the JUnitModel.
| Method Summary | |
|---|---|
void |
classFileError(ClassFileError e)
Called when JUnit encounters an illegal class file. |
void |
compileBeforeJUnit(CompilerListener l,
List<OpenDefinitionsDocument> outOfSync)
Demands that all source files be in sync before running JUnit tests. |
void |
junitClassesStarted()
Called when testing a specific list of classes given their source files. |
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 |
nonTestCase(boolean isTestAll,
boolean didCompileFail)
Called when trying to test a non-TestCase class. |
| Method Detail |
|---|
void nonTestCase(boolean isTestAll,
boolean didCompileFail)
isTestAll - whether or not it was a use of the test all buttondidCompileFail - whether or not a compile before this JUnit attempt failedvoid classFileError(ClassFileError e)
e - the error or exception thrown by loading and resolving f.void junitStarted()
void junitClassesStarted()
void junitSuiteStarted(int numTests)
numTests - The number of tests in the suite to be run.void junitTestStarted(String name)
name - The name of the test being started.
void junitTestEnded(String name,
boolean wasSuccessful,
boolean causedError)
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.void junitEnded()
void compileBeforeJUnit(CompilerListener l,
List<OpenDefinitionsDocument> outOfSync)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||