|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JUnitModel
Method Summary | |
---|---|
void |
addListener(JUnitListener listener)
Add a JUnitListener to the model. |
SwingDocument |
getJUnitDocument()
This is used by test cases and perhaps other things. |
JUnitErrorModel |
getJUnitErrorModel()
Gets the JUnitErrorModel, which contains error info for the last test run. |
void |
junit(OpenDefinitionsDocument doc)
Runs JUnit over a single document. |
void |
junitAll()
Creates a JUnit test suite over all currently open documents and runs it. |
void |
junitDocs(List<OpenDefinitionsDocument> lod)
Runs JUnit over a list of documents. |
void |
junitProject()
Creates a JUnit test suite over all currently open project documents and runs it. |
void |
nonTestCase(boolean isTestAll)
Cleans up an attempt JUnit test exeuction when suitable test code is not available. |
void |
removeAllListeners()
Removes all JUnitListeners from this model. |
void |
removeListener(JUnitListener listener)
Removes a JUnitListener from the model. |
void |
resetJUnitErrors()
Resets the junit error state to have no errors. |
void |
setForceTestSuffix(boolean b)
set the forceTestSuffix flag that forces class names in projects to end in "Test |
Method Detail |
---|
void setForceTestSuffix(boolean b)
void addListener(JUnitListener listener)
listener
- a listener that reacts to JUnit eventsvoid removeListener(JUnitListener listener)
listener
- a listener that reacts to JUnit eventsvoid removeAllListeners()
SwingDocument getJUnitDocument()
void junitAll()
void junitProject()
void junitDocs(List<OpenDefinitionsDocument> lod)
lod
- the list of documents that are to be run through JUnit testing.void junit(OpenDefinitionsDocument doc) throws ClassNotFoundException, IOException
doc
- the document to be run under JUnit
ClassNotFoundException
IOException
void nonTestCase(boolean isTestAll)
isTestAll
- whether or not it was a use of the test all buttonJUnitErrorModel getJUnitErrorModel()
void resetJUnitErrors()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |