junitAll() Creates a JUnit test suite over all currently open documents and runs it.
public void
junitClasses(List<String> qualifiedClassnames, List<File> files) Forwards the classnames and files to the test manager to test all of them; does not notify
since we don't have ODD's to send out with the notification of junit start.
Main constructor.
Parameters: jvm - RMI interface to a secondary JVM for running tests Parameters: compilerModel - the CompilerModel, used only as a lock to prevent simultaneous test and compile Parameters: model - used only for getSourceFile
Called when the JUnitTestManager wants to open a file that is not currently open.
Parameters: className - the name of the class for which we want to find the file the file associated with the given class
Forwards the classnames and files to the test manager to test all of them; does not notify
since we don't have ODD's to send out with the notification of junit start.
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.
Creates a JUnit test suite over all currently open documents and runs it. If a class file associated with a
source 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.
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
public void testEnded(String testName, boolean wasSuccessful, boolean causedError)(Code)
Called when a particular test has ended.
Parameters: testName - The name of the test that has ended. Parameters: wasSuccessful - Whether the test passed or not. Parameters: causedError - If not successful, whether the test caused an erroror simply failed.