|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.runner.BaseTestRunner
junit.textui.TestRunner
org.apache.jdo.tck.util.BatchTestRunner
TestRunner class for running a single test or a test suite in batch mode. The format of the test output is specified by the result printer class. The main method sets an exit code according to the test result:
0
: success
1
: failure, the test shows an unexpected behavior
2
: exception, the test throws an unhandled excption
Field Summary | |
static java.lang.String |
RESULTPRINTER_DEFAULT
Default of the system property ResultPrinterClass. |
static java.lang.String |
RESULTPRINTER_PROPERTY
Name of the system property to specify the result printer class. |
Fields inherited from class junit.textui.TestRunner |
EXCEPTION_EXIT, FAILURE_EXIT, SUCCESS_EXIT |
Fields inherited from class junit.runner.BaseTestRunner |
SUITE_METHODNAME |
Constructor Summary | |
BatchTestRunner()
Constructor. |
|
BatchTestRunner(junit.textui.ResultPrinter resultPrinter)
Constructor. |
Method Summary | |
protected junit.textui.ResultPrinter |
getDefaultResultPrinter()
Returns an instance of the default result printer class BatchResultPrinter. |
protected junit.textui.ResultPrinter |
getResultPrinter()
Returns a result printer instance. |
static void |
main(java.lang.String[] args)
Runs in batch mode and sets an exit code. |
static void |
run(java.lang.Class clazz)
Runs all test methods from the specified class. |
static junit.framework.TestResult |
run(junit.framework.Test test)
Runs the specified test. |
static void |
runAndWait(junit.framework.Test suite)
Runs the specified test and waits until the user types RETURN. |
junit.framework.TestResult |
start(java.lang.String[] args)
|
Methods inherited from class junit.textui.TestRunner |
createTestResult, doRun, doRun, getLoader, pause, runFailed, setPrinter, testEnded, testFailed, testStarted |
Methods inherited from class junit.runner.BaseTestRunner |
addError, addFailure, clearStatus, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, 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 |
Field Detail |
public static final java.lang.String RESULTPRINTER_PROPERTY
public static final java.lang.String RESULTPRINTER_DEFAULT
Constructor Detail |
public BatchTestRunner()
public BatchTestRunner(junit.textui.ResultPrinter resultPrinter)
Method Detail |
public static void run(java.lang.Class clazz)
public static junit.framework.TestResult run(junit.framework.Test test)
public static void runAndWait(junit.framework.Test suite)
public static void main(java.lang.String[] args)
public junit.framework.TestResult start(java.lang.String[] args)
protected junit.textui.ResultPrinter getResultPrinter()
protected junit.textui.ResultPrinter getDefaultResultPrinter()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |