|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MainJVMRemoteI
This interface specifies the methods that the Main JVM exposes for the InterpreterJVM to call.
Method Summary | |
---|---|
void |
classFileError(ClassFileError e)
Called if the slave JVM encounters an illegal class file during testing. |
String |
getConsoleInput()
Asks the main jvm for input from the console. |
File |
getFileForClassName(String className)
Called when the JUnitTestManager wants to open a file that is not currently open. |
void |
nonTestCase(boolean isTestAll)
Called if JUnit is invoked on a non TestCase class. |
void |
quitFailed(Throwable th)
This method is called by the interpreter JVM if it cannot be exited (likely because of its having a security manager) |
void |
systemErrPrint(String s)
Forwards a call to System.err from InterpreterJVM to the MainJVM for output to the user. |
void |
systemOutPrint(String s)
Forwards a call to System.out from InterpreterJVM to the MainJVM for output to the user. |
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 interface edu.rice.cs.util.newjvm.MasterRemote |
---|
checkStillAlive, errorStartingSlave, registerSlave |
Method Detail |
---|
void systemErrPrint(String s) throws RemoteException
s
- String that was printed in the other JVM
RemoteException
void systemOutPrint(String s) throws RemoteException
s
- String that was printed in the other JVM
RemoteException
String getConsoleInput() throws RemoteException
RemoteException
void quitFailed(Throwable th) throws RemoteException
th
- The Throwable thrown by System.exit
RemoteException
void nonTestCase(boolean isTestAll) throws RemoteException
isTestAll
- whether or not it was a use of the test all button
RemoteException
void classFileError(ClassFileError e) throws RemoteException
e
- the ClassFileError object describing the error when loading the class file.
RemoteException
void testSuiteStarted(int numTests) throws RemoteException
numTests
- The number of tests in the suite to be run.
RemoteException
void testStarted(String testName) throws RemoteException
testName
- The name of the test being started.
RemoteException
void testEnded(String testName, boolean wasSuccessful, boolean causedError) throws RemoteException
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.
RemoteException
void testSuiteEnded(JUnitError[] errors) throws RemoteException
errors
- The array of errors from all failed tests in the suite.
RemoteException
File getFileForClassName(String className) throws RemoteException
className
- the name of the class for which we want to find the file
RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |