1. package junit.swingui;
  2. import javax.swing.ListModel;
  3. import junit.framework.Test;
  4. /**
  5. * The interface for accessing the Test run context. Test run views
  6. * should use this interface rather than accessing the TestRunner
  7. * directly.
  8. */
  9. public interface TestRunContext {
  10. /**
  11. * Handles the selection of a Test.
  12. */
  13. public void handleTestSelected(Test test);
  14. /**
  15. * Returns the failure model
  16. */
  17. public ListModel getFailures();
  18. }