Method Summary |
|
public void | addBuildDirectoryClassPath(File f) |
public void | addDebugInterpreter(String name, String className) Adds a named JavaDebugInterpreter to the list of interpreters. |
public void | addExternalFilesClassPath(File f) |
public void | addExtraClassPath(File f) |
public void | addJavaInterpreter(String name) Adds a named DynamicJavaAdapter to the list of interpreters. |
public void | addProjectClassPath(File f) |
public void | addProjectFilesClassPath(File f) |
protected boolean | allowAssertions() Return whether to allow assertions in the InterpreterJVM. |
public void | classFileError(ClassFileError e) Called if the slave JVM encounters an illegal class file in testing. |
public void | enableRestart() ReEnables restarting the slave if it has been turned off by repeated startup failures. |
public InterpreterJVMRemoteI | ensureInterpreterConnected() If an interpreter has not registered itself, this method will block until one does. |
public void | errorStartingSlave(Throwable cause) Called if the slave JVM dies before it is able to register. |
public List<String> | findTestClasses(List<String> classNames, List<File> files) |
public Iterable<File> | getClassPath() Returns the current classpath of the interpreter as a list of
unique entries. |
public String | getConsoleInput() Asks the main jvm for input from the console. |
public String | getCurrentInterpreterName() Accesses the cached current interpreter name. |
protected int | getDebugPort() Returns the debug port to use, as specified by the model. |
public File | getFileForClassName(String className) Called when the JUnitTestManager wants to open a file that is not currently open. |
protected InterpretResultVisitor<Object> | getResultHandler() Returns the visitor to handle an InterpretResult. |
public String | getVariableClassName(String var) Gets the class name of a variable in the current interpreter. |
public String | getVariableToString(String var) Gets the string representation of the value of a variable in the current interpreter. |
protected void | handleSlaveConnected() Called when Interpreter JVM connects to us after being started. |
protected void | handleSlaveQuit(int status) React if the slave JVM quits. |
public void | interpret(String s) Interprets string s in slave JVM. |
public void | interpretResult(InterpretResult result) Called when a call to interpret has completed. |
public boolean | isInterpreterRunning() |
public boolean | isStartupInProgress() Returns whether a JVM is currently starting. |
public void | killInterpreter(File wd) Kills the running interpreter JVM, and restarts with working directory wd if wd != null. |
public void | nonTestCase(boolean isTestAll) Called if JUnit is invoked on a non TestCase class. |
public void | quitFailed(Throwable th) This method is called by the interpreter JVM if it cannot be exited. |
public void | removeInterpreter(String name) Removes the interpreter with the given name, if it exists. |
public boolean | runTestSuite() Runs the JUnit test suite already cached in the Interpreter JVM. |
public boolean | setActiveInterpreter(String name) |
public void | setAllowAssertions(boolean allow) Sets whether the remote JVM will run "assert" statements after the next restart. |
public void | setDebugModel(DebugModelCallback model) Provides an object to listen to debug-related events. |
public void | setInteractionsModel(InteractionsModelCallback model) Provides an object to listen to interactions-related events. |
public void | setJUnitModel(JUnitModelCallback model) Provides an object to listen to test-related events. |
public void | setOptionArgs(String argString) Sets the extra (optional) arguments to be passed to the interpreter. |
public void | setPackageScope(String packageName) Sets the Interpreter to be in the given package. |
public void | setPrivateAccessible(boolean allow) Sets the interpreter to allow access to private members. |
public void | setShowMessageOnResetFailure(boolean show) Parameters: show - Whether to show a message if a reset operation fails. |
public void | setStartupClassPath(String classPath) Sets the classpath to use for starting the interpreter JVM. |
public boolean | setToDefaultInterpreter() Sets the default interpreter to be the current one.
Whether the new interpreter is currently in progress with an interaction (ie. |
public boolean | slaveJVMUsed() |
protected void | slaveQuitDuringStartup(int status) Action to take if the slave JVM quits before registering. |
public void | startInterpreterJVM() Starts the interpreter if it's not running already. |
public void | systemErrPrint(String s) Forwards a call to System.err from InterpreterJVM to the local InteractionsModel. |
public void | systemOutPrint(String s) Forwards a call to System.out from InterpreterJVM to the local InteractionsModel. |
public void | testEnded(String testName, boolean wasSuccessful, boolean causedError) Called when a particular test has ended. |
public void | testStarted(String testName) Called when a particular test is started. |
public void | testSuiteEnded(JUnitError[] errors) Called when a full suite of tests has finished running. |
public void | testSuiteStarted(int numTests) Called to indicate that a suite of tests has started running. |