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