• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package junit.runner;
2 
3 /**
4  * A listener interface for observing the
5  * execution of a test run. Unlike TestListener,
6  * this interface using only primitive objects,
7  * making it suitable for remote test execution.
8  */
9 public interface TestRunListener {
10     /* test status constants*/
11     public static final int STATUS_ERROR = 1;
12     public static final int STATUS_FAILURE = 2;
13 
testRunStarted(String testSuiteName, int testCount)14     public void testRunStarted(String testSuiteName, int testCount);
15 
testRunEnded(long elapsedTime)16     public void testRunEnded(long elapsedTime);
17 
testRunStopped(long elapsedTime)18     public void testRunStopped(long elapsedTime);
19 
testStarted(String testName)20     public void testStarted(String testName);
21 
testEnded(String testName)22     public void testEnded(String testName);
23 
testFailed(int status, String testName, String trace)24     public void testFailed(int status, String testName, String trace);
25 }
26