KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > swingui > TestRunView


1 package junit.swingui;
2
3 import javax.swing.JTabbedPane JavaDoc;
4
5 import junit.framework.Test;
6 import junit.framework.TestResult;
7
8 /**
9  * A TestRunView is shown as a page in a tabbed folder.
10  * It contributes the page contents and can return
11  * the currently selected tests. A TestRunView is
12  * notified about the start and finish of a run.
13  */

14 interface TestRunView {
15     /**
16      * Returns the currently selected Test in the View
17      */

18     public Test getSelectedTest();
19     /**
20      * Activates the TestRunView
21      */

22     public void activate();
23     /**
24      * Reveals the given failure
25      */

26     public void revealFailure(Test failure);
27     /**
28      * Adds the TestRunView to the test run views tab
29      */

30     public void addTab(JTabbedPane JavaDoc pane);
31     /**
32      * Informs that the suite is about to start
33      */

34     public void aboutToStart(Test suite, TestResult result);
35     /**
36      * Informs that the run of the test suite has finished
37      */

38     public void runFinished(Test suite, TestResult result);
39 }
Popular Tags