001 package junit.framework;
002
003 /**
004 * A Listener for test progress
005 */
006 public interface TestListener {
007 /**
008 * An error occurred.
009 */
010 public void addError(Test test, Throwable e);
011
012 /**
013 * A failure occurred.
014 */
015 public void addFailure(Test test, AssertionFailedError e);
016
017 /**
018 * A test ended.
019 */
020 public void endTest(Test test);
021
022 /**
023 * A test started.
024 */
025 public void startTest(Test test);
026 }