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