Exemplo n.º 1
0
 /**
  * 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);
 }
Exemplo n.º 2
0
 /**
  * Checks if a test is currently being run.
  *
  * @return true if a test is currently being run.
  */
 public boolean isRunning() {
   return builder.isRunning();
 }
Exemplo n.º 3
0
 /** Stops the currently running test */
 public void stopTest() {
   builder.stopTest();
 }
Exemplo n.º 4
0
 /**
  * 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);
 }