|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.runner.BaseTestRunner | +--junit.swingui.TestRunner
A Swing based user interface to run tests. Enter the name of a class which either provides a static suite method or is a subclass of TestCase.
Synopsis: java junit.swingui.TestRunner [-noloading] [TestCase]TestRunner takes as an optional argument the name of the testcase class to be run.
Field Summary | |
protected javax.swing.JFrame |
fFrame
|
Fields inherited from class junit.runner.BaseTestRunner |
SUITE_METHODNAME |
Constructor Summary | |
TestRunner()
|
Method Summary | |
protected void |
aboutToStart(Test testSuite)
|
void |
addError(Test test,
java.lang.Throwable t)
An error occurred. |
void |
addFailure(Test test,
AssertionFailedError t)
A failure occurred. |
void |
browseTestClasses()
|
protected void |
clearStatus()
Clears the status message. |
protected java.awt.Component |
createBrowseButton()
|
protected CounterPanel |
createCounterPanel()
|
protected javax.swing.JPanel |
createFailedPanel()
|
protected FailureDetailView |
createFailureDetailView()
|
protected javax.swing.JFrame |
createFrame(java.lang.String title)
|
protected javax.swing.JMenu |
createJUnitMenu()
Creates the JUnit menu. |
protected javax.swing.JLabel |
createLogo()
|
protected void |
createMenus(javax.swing.JMenuBar mb)
|
protected javax.swing.JButton |
createQuitButton()
|
protected javax.swing.JButton |
createRunButton()
|
protected StatusLine |
createStatusLine()
|
protected javax.swing.JComboBox |
createSuiteCombo()
|
protected TestResult |
createTestResult()
|
protected javax.swing.JTabbedPane |
createTestRunViews()
|
protected javax.swing.JFrame |
createUI(java.lang.String suiteName)
|
protected javax.swing.JCheckBox |
createUseLoaderCheckBox()
|
void |
endTest(Test test)
A test ended. |
javax.swing.ListModel |
getFailures()
Returns the failure model |
static javax.swing.Icon |
getIconResource(java.lang.Class clazz,
java.lang.String name)
|
protected java.lang.String |
getSuiteText()
|
void |
handleTestSelected(Test test)
Handles the selection of a Test. |
void |
insertUpdate(javax.swing.event.DocumentEvent event)
|
static void |
main(java.lang.String[] args)
|
void |
removeUpdate(javax.swing.event.DocumentEvent event)
|
protected void |
reset()
|
void |
run()
Deprecated. use runSuite() instead |
static void |
run(java.lang.Class test)
|
protected void |
runFailed(java.lang.String message)
Override to define how to handle a failed loading of a test suite. |
protected void |
runFinished(Test testSuite)
|
void |
runSuite()
|
protected void |
runTest(Test testSuite)
|
void |
setSuite(java.lang.String suiteName)
|
void |
start(java.lang.String[] args)
Starts the TestRunner |
void |
startTest(Test test)
A test started. |
void |
terminate()
Terminates the TestRunner |
void |
testViewChanged()
|
void |
textChanged()
|
Methods inherited from class junit.runner.BaseTestRunner |
elapsedTimeAsString, extractClassName, filterStack, getFilteredTrace, getLoader, getPreference, getPreference, getTest, inVAJava, loadSuiteClass, processArguments, setLoading, truncate, useReloadingTestSuiteLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected javax.swing.JFrame fFrame
Constructor Detail |
public TestRunner()
Method Detail |
public static void main(java.lang.String[] args)
public static void run(java.lang.Class test)
public void addError(Test test, java.lang.Throwable t)
TestListener
public void addFailure(Test test, AssertionFailedError t)
TestListener
public void startTest(Test test)
TestListener
public void endTest(Test test)
TestListener
public void setSuite(java.lang.String suiteName)
protected void aboutToStart(Test testSuite)
protected void runFinished(Test testSuite)
protected CounterPanel createCounterPanel()
protected javax.swing.JPanel createFailedPanel()
protected FailureDetailView createFailureDetailView()
protected javax.swing.JMenu createJUnitMenu()
protected javax.swing.JFrame createFrame(java.lang.String title)
protected javax.swing.JLabel createLogo()
protected void createMenus(javax.swing.JMenuBar mb)
protected javax.swing.JCheckBox createUseLoaderCheckBox()
protected javax.swing.JButton createQuitButton()
protected javax.swing.JButton createRunButton()
protected java.awt.Component createBrowseButton()
protected StatusLine createStatusLine()
protected javax.swing.JComboBox createSuiteCombo()
protected javax.swing.JTabbedPane createTestRunViews()
public void testViewChanged()
protected TestResult createTestResult()
protected javax.swing.JFrame createUI(java.lang.String suiteName)
protected java.lang.String getSuiteText()
public javax.swing.ListModel getFailures()
TestRunContext
getFailures
in interface TestRunContext
public void insertUpdate(javax.swing.event.DocumentEvent event)
public void browseTestClasses()
public void removeUpdate(javax.swing.event.DocumentEvent event)
protected void reset()
public void run()
protected void runFailed(java.lang.String message)
BaseTestRunner
runFailed
in class BaseTestRunner
public void runSuite()
protected void runTest(Test testSuite)
public void handleTestSelected(Test test)
TestRunContext
handleTestSelected
in interface TestRunContext
public void start(java.lang.String[] args)
public void terminate()
public void textChanged()
protected void clearStatus()
BaseTestRunner
clearStatus
in class BaseTestRunner
public static javax.swing.Icon getIconResource(java.lang.Class clazz, java.lang.String name)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |