| edu.rice.cs.drjava.model.junit.JUnitModel
All known Subclasses: edu.rice.cs.drjava.model.junit.DefaultJUnitModel,
JUnitModel | public interface JUnitModel (Code) | | |
addListener | public void addListener(JUnitListener listener)(Code) | | Add a JUnitListener to the model.
Parameters: listener - a listener that reacts to JUnit events |
getJUnitDocument | public SwingDocument getJUnitDocument()(Code) | | This is used by test cases and perhaps other things. We should kill it.
|
getJUnitErrorModel | public JUnitErrorModel getJUnitErrorModel()(Code) | | Gets the JUnitErrorModel, which contains error info for the last test run.
|
junit | public void junit(OpenDefinitionsDocument doc) throws ClassNotFoundException, IOException(Code) | | Runs JUnit over a single document. Synchronized against the compiler model to prevent testing
and compiling at the same time, which would create invalid results.
Parameters: doc - the document to be run under JUnit |
junitAll | public void junitAll()(Code) | | Creates a JUnit test suite over all currently open documents and runs it. If the class file
associated with a file is not a test case, it will be ignored. Synchronized against the compiler
model to prevent testing and compiling at the same time, which would create invalid results.
|
junitClasses | public void junitClasses(List<String> qualifiedClassnames, List<File> files)(Code) | | Forwards the classnames and files to the test manager to test all of them.
Parameters: qualifiedClassnames - a list of all the qualified class names to test. Parameters: files - a list of their source files in the same order as qualified class names. |
junitDocs | public void junitDocs(List<OpenDefinitionsDocument> lod)(Code) | | Runs JUnit over a list of documents. Synchronized against the compiler model to prevent
testing and compiling at the same time, which would create invalid results.
Parameters: lod - the list of documents that are to be run through JUnit testing. |
junitProject | public void junitProject()(Code) | | Creates a JUnit test suite over all currently open project documents and runs it. If
the class file associated with a file is not a test case, it will be ignored. Synchronized
against the compiler model to prevent testing and compiling at the same time, which would
create invalid results.
|
nonTestCase | public void nonTestCase(boolean isTestAll)(Code) | | Cleans up an attempt JUnit test exeuction when suitable test code is not available.
Parameters: isTestAll - whether or not it was a use of the test all button |
removeAllListeners | public void removeAllListeners()(Code) | | Removes all JUnitListeners from this model.
|
removeListener | public void removeListener(JUnitListener listener)(Code) | | Remove a JUnitListener from the model. If the listener is not currently listening to this
model, this method has no effect.
Parameters: listener - a listener that reacts to JUnit events |
resetJUnitErrors | public void resetJUnitErrors()(Code) | | Resets the junit error state to have no errors.
|
setForceTestSuffix | public void setForceTestSuffix(boolean b)(Code) | | set the forceTestSuffix flag that forces class names in projects to end in "Test
|
|
|