1. package junit.swingui;
  2. import javax.swing.JTabbedPane;
  3. import junit.framework.*;
  4. /**
  5. * A TestRunView is shown as a page in a tabbed folder.
  6. * It contributes the page contents and can return
  7. * the currently selected tests. A TestRunView is
  8. * notified about the start and finish of a run.
  9. */
  10. interface TestRunView {
  11. /**
  12. * Returns the currently selected Test in the View
  13. */
  14. public Test getSelectedTest();
  15. /**
  16. * Activates the TestRunView
  17. */
  18. public void activate();
  19. /**
  20. * Reveals the given failure
  21. */
  22. public void revealFailure(Test failure);
  23. /**
  24. * Adds the TestRunView to the test run views tab
  25. */
  26. public void addTab(JTabbedPane pane);
  27. /**
  28. * Informs that the suite is about to start
  29. */
  30. public void aboutToStart(Test suite, TestResult result);
  31. /**
  32. * Informs that the run of the test suite has finished
  33. */
  34. public void runFinished(Test suite, TestResult result);
  35. }