junit.swingui
Interface TestRunView

All Known Implementing Classes:
FailureRunView, TestHierarchyRunView

interface TestRunView

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.


Method Summary
 void aboutToStart(Test suite, TestResult result)
          Informs that the suite is about to start
 void activate()
          Activates the TestRunView
 void addTab(JTabbedPane pane)
          Adds the TestRunView to the test run views tab
 Test getSelectedTest()
          Returns the currently selected Test in the View
 void revealFailure(Test failure)
          Reveals the given failure
 void runFinished(Test suite, TestResult result)
          Informs that the run of the test suite has finished
 

Method Detail

getSelectedTest

Test getSelectedTest()
Returns the currently selected Test in the View


activate

void activate()
Activates the TestRunView


revealFailure

void revealFailure(Test failure)
Reveals the given failure


addTab

void addTab(JTabbedPane pane)
Adds the TestRunView to the test run views tab


aboutToStart

void aboutToStart(Test suite,
                  TestResult result)
Informs that the suite is about to start


runFinished

void runFinished(Test suite,
                 TestResult result)
Informs that the run of the test suite has finished