1 package junit.framework; 2 3 /*** 4 * A Listener for test progress 5 */ 6 public interface TestListener { 7 /*** 8 * An error occurred. 9 */ 10 public void addError(Test test, Throwable t); 11 /*** 12 * A failure occurred. 13 */ 14 public void addFailure(Test test, AssertionFailedError t); 15 /*** 16 * A test ended. 17 */ 18 public void endTest(Test test); 19 /*** 20 * A test started. 21 */ 22 public void startTest(Test test); 23 }