|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.cs.drjava.model.GlobalModelTestCase.TestListener
A GlobalModelListener for testing. By default it expects no events to be fired. To customize, subclass and override one or more methods.
Inner classes inherited from class edu.rice.cs.drjava.model.GlobalModelListener |
GlobalModelListener.SaveReason |
Field Summary | |
protected int |
canAbandonCount
|
protected int |
closeCount
|
protected int |
compileEndCount
|
protected int |
compileStartCount
|
protected int |
consoleResetCount
|
protected int |
fileRevertedCount
|
protected int |
interactionEndCount
|
protected int |
interactionsExitedCount
|
protected int |
interactionsResetCount
|
protected int |
interactionsResettingCount
|
protected int |
interactionStartCount
|
protected int |
junitEndCount
|
protected int |
junitRunningCount
|
protected int |
junitStartCount
|
protected int |
lastExitStatus
|
protected int |
newCount
|
protected int |
nonTestCaseCount
|
protected int |
openCount
|
protected int |
saveAllBeforeProceedingCount
|
protected int |
saveCount
|
protected int |
shouldRevertFileCount
|
Fields inherited from interface edu.rice.cs.drjava.model.GlobalModelListener |
COMPILE_REASON, DEBUG_REASON, JUNIT_REASON |
Constructor Summary | |
GlobalModelTestCase.TestListener()
|
Method Summary | |
void |
assertAbandonCount(int i)
|
void |
assertCloseCount(int i)
|
void |
assertCompileEndCount(int i)
|
void |
assertCompileStartCount(int i)
|
void |
assertConsoleResetCount(int i)
|
void |
assertFileRevertedCount(int i)
|
void |
assertInteractionEndCount(int i)
|
void |
assertInteractionsExitedCount(int i)
|
void |
assertInteractionsResetCount(int i)
|
void |
assertInteractionsResettingCount(int i)
|
void |
assertInteractionStartCount(int i)
|
void |
assertJUnitEndCount(int i)
|
void |
assertJUnitRunningCount(int i)
|
void |
assertJUnitStartCount(int i)
|
void |
assertNewCount(int i)
|
void |
assertNonTestCaseCount(int i)
|
void |
assertOpenCount(int i)
|
void |
assertSaveAllBeforeProceedingCount(int i)
|
void |
assertSaveCount(int i)
|
void |
assertShouldRevertFileCount(int i)
|
boolean |
canAbandonFile(OpenDefinitionsDocument doc)
Called to ask the listener if it is OK to abandon the current document. |
void |
compileEnded()
Called when a compile has finished running. |
void |
compileStarted()
Called after a compile is started by the GlobalModel. |
void |
consoleReset()
Called when the console window is reset. |
void |
fileClosed(OpenDefinitionsDocument doc)
Called after a document is closed. |
void |
fileOpened(OpenDefinitionsDocument doc)
Called after a file is opened and read into the current document. |
void |
fileReverted(OpenDefinitionsDocument doc)
Called after a document is reverted. |
void |
fileSaved(OpenDefinitionsDocument doc)
Called after the current document is saved. |
void |
interactionEnded()
Called when an interaction has finished running. |
void |
interactionsExited(int status)
Called when the interactions JVM was closed by System.exit or by being aborted. |
void |
interactionsReset()
Called when the interactions window is reset. |
void |
interactionsResetting()
Called when the interactionsJVM has begun to be resetted |
void |
interactionStarted()
Called after an interaction is started by the GlobalModel. |
void |
junitEnded()
Called after JUnit is finished running tests. |
void |
junitRunning()
Called once JUnit actually starts running the tests. |
void |
junitStarted(OpenDefinitionsDocument doc)
Called after JUnit is started by the GlobalModel. |
void |
newFileCreated(OpenDefinitionsDocument doc)
Called after a new document is created. |
void |
nonTestCase()
Called when trying to test a non-TestCase class. |
void |
resetCounts()
|
void |
saveAllBeforeProceeding(GlobalModelListener.SaveReason reason)
Called to demand that the listeners save all open documents before the GlobalModel can proceed with another action. |
boolean |
shouldRevertFile(OpenDefinitionsDocument doc)
Called to ask the listener if it is OK to revert the current document to a newer version saved on file. |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected int newCount
protected int openCount
protected int closeCount
protected int saveCount
protected int canAbandonCount
protected int compileStartCount
protected int compileEndCount
protected int junitStartCount
protected int junitRunningCount
protected int junitEndCount
protected int interactionStartCount
protected int interactionEndCount
protected int consoleResetCount
protected int interactionsResettingCount
protected int interactionsResetCount
protected int interactionsExitedCount
protected int saveAllBeforeProceedingCount
protected int nonTestCaseCount
protected int lastExitStatus
protected int fileRevertedCount
protected int shouldRevertFileCount
Constructor Detail |
public GlobalModelTestCase.TestListener()
Method Detail |
public void resetCounts()
public void assertAbandonCount(int i)
public void assertNewCount(int i)
public void assertOpenCount(int i)
public void assertCloseCount(int i)
public void assertSaveCount(int i)
public void assertJUnitStartCount(int i)
public void assertJUnitRunningCount(int i)
public void assertJUnitEndCount(int i)
public void assertInteractionStartCount(int i)
public void assertInteractionEndCount(int i)
public void assertCompileStartCount(int i)
public void assertCompileEndCount(int i)
public void assertInteractionsResettingCount(int i)
public void assertInteractionsResetCount(int i)
public void assertInteractionsExitedCount(int i)
public void assertConsoleResetCount(int i)
public void assertSaveAllBeforeProceedingCount(int i)
public void assertNonTestCaseCount(int i)
public void assertFileRevertedCount(int i)
public void assertShouldRevertFileCount(int i)
public void newFileCreated(OpenDefinitionsDocument doc)
GlobalModelListener
newFileCreated
in interface GlobalModelListener
public void fileOpened(OpenDefinitionsDocument doc)
GlobalModelListener
fileOpened
in interface GlobalModelListener
public void fileClosed(OpenDefinitionsDocument doc)
GlobalModelListener
fileClosed
in interface GlobalModelListener
public void fileSaved(OpenDefinitionsDocument doc)
GlobalModelListener
fileSaved
in interface GlobalModelListener
public void fileReverted(OpenDefinitionsDocument doc)
GlobalModelListener
fileReverted
in interface GlobalModelListener
public void junitStarted(OpenDefinitionsDocument doc)
GlobalModelListener
junitStarted
in interface GlobalModelListener
public void junitRunning()
GlobalModelListener
junitRunning
in interface GlobalModelListener
public void junitEnded()
GlobalModelListener
junitEnded
in interface GlobalModelListener
public void interactionStarted()
GlobalModelListener
interactionStarted
in interface GlobalModelListener
public void interactionEnded()
GlobalModelListener
interactionEnded
in interface GlobalModelListener
public void compileStarted()
GlobalModelListener
compileStarted
in interface GlobalModelListener
public void compileEnded()
GlobalModelListener
compileEnded
in interface GlobalModelListener
public void interactionsResetting()
GlobalModelListener
interactionsResetting
in interface GlobalModelListener
public void interactionsReset()
GlobalModelListener
interactionsReset
in interface GlobalModelListener
public void interactionsExited(int status)
GlobalModelListener
interactionsExited
in interface GlobalModelListener
edu.rice.cs.drjava.model.GlobalModelListener
status
- The exit codepublic void consoleReset()
GlobalModelListener
consoleReset
in interface GlobalModelListener
public void saveAllBeforeProceeding(GlobalModelListener.SaveReason reason)
GlobalModelListener
saveAllBeforeProceeding
in interface GlobalModelListener
public void nonTestCase()
GlobalModelListener
nonTestCase
in interface GlobalModelListener
public boolean canAbandonFile(OpenDefinitionsDocument doc)
GlobalModelListener
canAbandonFile
in interface GlobalModelListener
public boolean shouldRevertFile(OpenDefinitionsDocument doc)
GlobalModelListener
shouldRevertFile
in interface GlobalModelListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |