edu.rice.cs.drjava.model.repl.newjvm
Class MainJVM.DummyJUnitModel

java.lang.Object
  extended by edu.rice.cs.drjava.model.repl.newjvm.MainJVM.DummyJUnitModel
All Implemented Interfaces:
JUnitModelCallback
Enclosing class:
MainJVM

public static class MainJVM.DummyJUnitModel
extends Object
implements JUnitModelCallback

JUnitModel which does not react to events.


Constructor Summary
MainJVM.DummyJUnitModel()
           
 
Method Summary
 void classFileError(ClassFileError e)
          Called from the JUnitTestManager if it encounters an illegal class file.
 Iterable<File> getClassPath()
          Returns the accumulated classpath in use by all Java interpreters
 File getFileForClassName(String className)
          Called when the JUnitTestManager wants to open a file that is not currently open.
 void junitJVMReady()
          Called when the JVM used for unit tests has registered.
 void nonTestCase(boolean isTestAll)
          Called from the JUnitTestManager if its given className is not a test case.
 void testEnded(String testName, boolean wasSuccessful, boolean causedError)
          Called when a particular test has ended.
 void testStarted(String testName)
          Called when a particular test is started.
 void testSuiteEnded(JUnitError[] errors)
          Called when a full suite of tests has finished running.
 void testSuiteStarted(int numTests)
          Called to indicate that a suite of tests has started running.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MainJVM.DummyJUnitModel

public MainJVM.DummyJUnitModel()
Method Detail

nonTestCase

public void nonTestCase(boolean isTestAll)
Description copied from interface: JUnitModelCallback
Called from the JUnitTestManager if its given className is not a test case.

Specified by:
nonTestCase in interface JUnitModelCallback
Parameters:
isTestAll - whether or not it was a use of the test all button

classFileError

public void classFileError(ClassFileError e)
Description copied from interface: JUnitModelCallback
Called from the JUnitTestManager if it encounters an illegal class file.

Specified by:
classFileError in interface JUnitModelCallback
Parameters:
e - the ClassFileError object describing the error

testSuiteStarted

public void testSuiteStarted(int numTests)
Description copied from interface: JUnitModelCallback
Called to indicate that a suite of tests has started running.

Specified by:
testSuiteStarted in interface JUnitModelCallback
Parameters:
numTests - The number of tests in the suite to be run.

testStarted

public void testStarted(String testName)
Description copied from interface: JUnitModelCallback
Called when a particular test is started.

Specified by:
testStarted in interface JUnitModelCallback
Parameters:
testName - The name of the test being started.

testEnded

public void testEnded(String testName,
                      boolean wasSuccessful,
                      boolean causedError)
Description copied from interface: JUnitModelCallback
Called when a particular test has ended.

Specified by:
testEnded in interface JUnitModelCallback
Parameters:
testName - 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.

testSuiteEnded

public void testSuiteEnded(JUnitError[] errors)
Description copied from interface: JUnitModelCallback
Called when a full suite of tests has finished running.

Specified by:
testSuiteEnded in interface JUnitModelCallback
Parameters:
errors - The array of errors from all failed tests in the suite.

getFileForClassName

public File getFileForClassName(String className)
Description copied from interface: JUnitModelCallback
Called when the JUnitTestManager wants to open a file that is not currently open.

Specified by:
getFileForClassName in interface JUnitModelCallback
Parameters:
className - the name of the class for which we want to find the file
Returns:
the file associated with the given class

getClassPath

public Iterable<File> getClassPath()
Description copied from interface: JUnitModelCallback
Returns the accumulated classpath in use by all Java interpreters

Specified by:
getClassPath in interface JUnitModelCallback

junitJVMReady

public void junitJVMReady()
Description copied from interface: JUnitModelCallback
Called when the JVM used for unit tests has registered.

Specified by:
junitJVMReady in interface JUnitModelCallback