/** * Adds the TestListener to this runners listener queue. * * @param tl The listener to listen for test events. */ public void setTestListener(TestListener tl) { builder.setTestListener(tl); }
/** * Checks if a test is currently being run. * * @return true if a test is currently being run. */ public boolean isRunning() { return builder.isRunning(); }
/** Stops the currently running test */ public void stopTest() { builder.stopTest(); }
/** * Splices, compiles, and starts a run of the JUnit test with the users methods. * * @param userMethods the users method(s) to test * @param junitCode the test to perform * @throws java.lang.Exception if the test failed to start */ public void run(String userMethods, String junitCode) throws Exception { builder.exec(userMethods, junitCode); }