jmathlib.tools.junit.swingui
Class FailureRunView

java.lang.Object
  extended by jmathlib.tools.junit.swingui.FailureRunView
All Implemented Interfaces:
TestRunView

 class FailureRunView
extends java.lang.Object
implements TestRunView

A view presenting the test failures as a list.


Nested Class Summary
(package private) static class FailureRunView.FailureListCellRenderer
          Renders TestFailures in a JList
 
Field Summary
(package private)  javax.swing.JList fFailureList
           
(package private)  TestRunContext fRunContext
           
 
Constructor Summary
FailureRunView(TestRunContext context)
           
 
Method Summary
 void aboutToStart(Test suite, TestResult result)
          Informs that the suite is about to start
 void activate()
          Activates the TestRunView
 void addTab(javax.swing.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
protected  void testSelected()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fFailureList

javax.swing.JList fFailureList

fRunContext

TestRunContext fRunContext
Constructor Detail

FailureRunView

public FailureRunView(TestRunContext context)
Method Detail

getSelectedTest

public Test getSelectedTest()
Description copied from interface: TestRunView
Returns the currently selected Test in the View

Specified by:
getSelectedTest in interface TestRunView

activate

public void activate()
Description copied from interface: TestRunView
Activates the TestRunView

Specified by:
activate in interface TestRunView

addTab

public void addTab(javax.swing.JTabbedPane pane)
Description copied from interface: TestRunView
Adds the TestRunView to the test run views tab

Specified by:
addTab in interface TestRunView

revealFailure

public void revealFailure(Test failure)
Description copied from interface: TestRunView
Reveals the given failure

Specified by:
revealFailure in interface TestRunView

aboutToStart

public void aboutToStart(Test suite,
                         TestResult result)
Description copied from interface: TestRunView
Informs that the suite is about to start

Specified by:
aboutToStart in interface TestRunView

runFinished

public void runFinished(Test suite,
                        TestResult result)
Description copied from interface: TestRunView
Informs that the run of the test suite has finished

Specified by:
runFinished in interface TestRunView

testSelected

protected void testSelected()

FOOTER

BOTTOM