public class TestRunner extends BaseTestRunner
Synopsis: java junit.awtui.TestRunner [-noloading] [TestCase]TestRunner takes as an optional argument the name of the testcase class to be run.
Modifier and Type | Field and Description |
---|---|
protected java.util.Vector |
fExceptions |
protected java.util.Vector |
fFailedTests |
protected java.awt.List |
fFailureList |
protected java.awt.Frame |
fFrame |
protected Logo |
fLogo |
protected java.awt.Label |
fNumberOfErrors |
protected java.awt.Label |
fNumberOfFailures |
protected java.awt.Label |
fNumberOfRuns |
protected ProgressBar |
fProgressIndicator |
protected java.awt.Button |
fQuitButton |
protected java.awt.Button |
fRerunButton |
protected java.awt.Button |
fRun |
protected java.lang.Thread |
fRunner |
protected java.awt.TextField |
fStatusLine |
protected java.awt.TextField |
fSuiteField |
protected TestResult |
fTestResult |
protected java.awt.TextArea |
fTraceArea |
protected java.awt.Checkbox |
fUseLoadingRunner |
protected static java.awt.Font |
PLAIN_FONT |
SUITE_METHODNAME
Constructor and Description |
---|
TestRunner() |
Modifier and Type | Method and Description |
---|---|
protected void |
addGrid(java.awt.Panel p,
java.awt.Component co,
int x,
int y,
int w,
int fill,
double wx,
int anchor) |
protected void |
clearStatus()
Clears the status message.
|
protected java.awt.Panel |
createCounterPanel() |
protected java.awt.Menu |
createJUnitMenu()
Creates the JUnit menu.
|
protected void |
createMenus(java.awt.MenuBar mb) |
protected TestResult |
createTestResult() |
protected java.awt.Frame |
createUI(java.lang.String suiteName) |
void |
failureSelected() |
java.lang.Thread |
getRunner() |
static void |
main(java.lang.String[] args) |
void |
rerun() |
protected void |
reset() |
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.
|
void |
runSuite() |
void |
setSuiteName(java.lang.String suite) |
void |
start(java.lang.String[] args)
Starts the TestRunner
|
void |
testEnded(java.lang.String testName) |
void |
testFailed(int status,
Test test,
java.lang.Throwable t) |
void |
testStarted(java.lang.String testName) |
addError, addFailure, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getLoader, getPreference, getPreference, getPreferences, getTest, inMac, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, startTest, truncate, useReloadingTestSuiteLoader
protected java.awt.Frame fFrame
protected java.util.Vector fExceptions
protected java.util.Vector fFailedTests
protected java.lang.Thread fRunner
protected TestResult fTestResult
protected java.awt.TextArea fTraceArea
protected java.awt.TextField fSuiteField
protected java.awt.Button fRun
protected ProgressBar fProgressIndicator
protected java.awt.List fFailureList
protected Logo fLogo
protected java.awt.Label fNumberOfErrors
protected java.awt.Label fNumberOfFailures
protected java.awt.Label fNumberOfRuns
protected java.awt.Button fQuitButton
protected java.awt.Button fRerunButton
protected java.awt.TextField fStatusLine
protected java.awt.Checkbox fUseLoadingRunner
protected static final java.awt.Font PLAIN_FONT
public void testStarted(java.lang.String testName)
testStarted
in class BaseTestRunner
public void testEnded(java.lang.String testName)
testEnded
in class BaseTestRunner
public void testFailed(int status, Test test, java.lang.Throwable t)
testFailed
in class BaseTestRunner
protected void addGrid(java.awt.Panel p, java.awt.Component co, int x, int y, int w, int fill, double wx, int anchor)
protected java.awt.Menu createJUnitMenu()
protected void createMenus(java.awt.MenuBar mb)
protected TestResult createTestResult()
protected java.awt.Frame createUI(java.lang.String suiteName)
protected java.awt.Panel createCounterPanel()
public void failureSelected()
public java.lang.Thread getRunner()
public static void main(java.lang.String[] args)
public static void run(java.lang.Class test)
public void rerun()
protected void reset()
protected void runFailed(java.lang.String message)
BaseTestRunner
runFailed
in class BaseTestRunner
public void runSuite()
public void setSuiteName(java.lang.String suite)
protected void clearStatus()
BaseTestRunner
clearStatus
in class BaseTestRunner
public void start(java.lang.String[] args)