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 int STATUS_ERROR = 1; 12 int STATUS_FAILURE = 2; 13 testRunStarted(String testSuiteName, int testCount)14 void testRunStarted(String testSuiteName, int testCount); 15 testRunEnded(long elapsedTime)16 void testRunEnded(long elapsedTime); 17 testRunStopped(long elapsedTime)18 void testRunStopped(long elapsedTime); 19 testStarted(String testName)20 void testStarted(String testName); 21 testEnded(String testName)22 void testEnded(String testName); 23 testFailed(int status, String testName, String trace)24 void testFailed(int status, String testName, String trace); 25 } 26