Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: junit/logswingui/TestRunView.java


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