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