junit.logswingui
Class TestRunner
java.lang.Object
|
+--junit.runner.BaseTestRunner
|
+--junit.swingui.TestRunner
|
+--junit.logswingui.TestRunner
- All Implemented Interfaces:
- AppenderListener, junit.framework.TestListener, junit.swingui.TestRunContext
- public class TestRunner
- extends junit.swingui.TestRunner
- implements AppenderListener, junit.swingui.TestRunContext
A Swing based user interface to run tests and protocol their results
with Log4J.
Enter the name of a class which either provides a static
suite method or is a subclass of TestCase.
Synopsis: java junit.logswingui.TestRunner [-noloading] [TestCase]
TestRunner takes as an optional argument the name of the testcase
class to be run.
Fields inherited from class junit.swingui.TestRunner |
fFrame |
Fields inherited from class junit.runner.BaseTestRunner |
SUITE_METHODNAME |
Methods inherited from class junit.swingui.TestRunner |
browseTestClasses, clearStatus, createBrowseButton, createCounterPanel, createFailureDetailView, createFrame, createJUnitMenu, createLogo, createMenus, createQuitButton, createRunButton, createStatusLine, createSuiteCombo, createTestRunViews, createUseLoaderCheckBox, getFailures, getIconResource, getSuiteText, handleTestSelected, insertUpdate, removeUpdate, run, runFailed, runSuite, runTest, setSuite, start, terminate, testEnded, testStarted, testViewChanged, textChanged |
Methods inherited from class junit.runner.BaseTestRunner |
addError, addFailure, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getLoader, getPreference, getPreference, getPreferences, getTest, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, startTest, truncate, useReloadingTestSuiteLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface junit.swingui.TestRunContext |
getFailures, handleTestSelected |
fProtocolButton
protected javax.swing.JButton fProtocolButton
fProtocolView
protected TestProtocolView fProtocolView
fLoggedTestResult
protected LoggedTestResult fLoggedTestResult
dateFormat
protected java.text.DateFormat dateFormat
startTime
protected long startTime
TestRunner
public TestRunner()
main
public static void main(java.lang.String[] args)
aboutToStart
protected void aboutToStart(junit.framework.Test testSuite)
- Overrides:
aboutToStart
in class junit.swingui.TestRunner
runFinished
protected void runFinished(junit.framework.Test testSuite)
- Overrides:
runFinished
in class junit.swingui.TestRunner
testFailed
public void testFailed(int status,
junit.framework.Test test,
java.lang.Throwable t)
- Overrides:
testFailed
in class junit.swingui.TestRunner
reset
protected void reset()
- Overrides:
reset
in class junit.swingui.TestRunner
createFailedPanel
protected javax.swing.JPanel createFailedPanel()
- Overrides:
createFailedPanel
in class junit.swingui.TestRunner
createTestResult
protected junit.framework.TestResult createTestResult()
- Overrides:
createTestResult
in class junit.swingui.TestRunner
createUI
protected javax.swing.JFrame createUI(java.lang.String suiteName)
- Overrides:
createUI
in class junit.swingui.TestRunner
viewProtocol
protected void viewProtocol()
- View the test protocol.
addMessage
public void addMessage(java.lang.String message)
- Adds a message to the test protocol.
- Specified by:
addMessage
in interface AppenderListener
- Parameters:
message
- message text
writeProtocolHeader
protected void writeProtocolHeader(java.util.Date start)
writeProtocolFooter
protected void writeProtocolFooter(long runTime)
Copyright © 2000 -- 2003 openfuture.de. All Rights Reserved.