|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--junit.runner.BaseTestRunner | +--org.exolab.jmscts.core.JUnitTestRunner
JUnit test runner which logs a trace as the tests are executed, followed by a summary at the end.
Fields inherited from class junit.runner.BaseTestRunner |
SUITE_METHODNAME |
Constructor Summary | |
JUnitTestRunner()
Constructs a JUnitTestRunner |
Method Summary | |
void |
addError(junit.framework.Test test,
java.lang.Throwable error)
Logs a test error |
void |
addFailure(junit.framework.Test test,
junit.framework.AssertionFailedError error)
Logs a test failure |
protected junit.framework.TestResult |
createTestResult()
Creates the TestResult to be used for the test run. |
junit.framework.TestResult |
doRun(junit.framework.Test suite)
Run a test suite |
junit.runner.TestSuiteLoader |
getLoader()
Always use the StandardTestSuiteLoader. |
void |
log(junit.framework.TestResult result)
Logs the result of the test |
void |
logErrors(junit.framework.TestResult result)
Logs any errors |
void |
logFailures(junit.framework.TestResult result)
Log any failures |
void |
logHeader(junit.framework.TestResult result)
Logs the header of the report |
static void |
run(java.lang.Class testClass)
Runs a suite extracted from a TestCase subclass. |
static void |
run(junit.framework.Test suite)
Runs a suite |
protected void |
runFailed(java.lang.String message)
Notifies of overall test failure, and exits |
void |
startTest(junit.framework.Test test)
Logs the start of a test |
void |
testEnded(java.lang.String testName)
Notifies the end of a test |
void |
testFailed(int status,
junit.framework.Test test,
java.lang.Throwable error)
Notifies the failure of a test |
void |
testStarted(java.lang.String testName)
Notifies the start of a test |
Methods inherited from class junit.runner.BaseTestRunner |
clearStatus, elapsedTimeAsString, endTest, extractClassName, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getPreferences, getTest, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, truncate, useReloadingTestSuiteLoader |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JUnitTestRunner()
JUnitTestRunner
Method Detail |
public junit.runner.TestSuiteLoader getLoader()
getLoader
in class junit.runner.BaseTestRunner
StandardTestSuiteLoader
public void testStarted(java.lang.String testName)
testStarted
in class junit.runner.BaseTestRunner
testName
- the name of the testpublic void testEnded(java.lang.String testName)
testEnded
in class junit.runner.BaseTestRunner
testName
- the name of the testpublic void testFailed(int status, junit.framework.Test test, java.lang.Throwable error)
testFailed
in class junit.runner.BaseTestRunner
status
- the statustest
- the testerror
- the errorpublic junit.framework.TestResult doRun(junit.framework.Test suite)
suite
- the suite to runpublic void startTest(junit.framework.Test test)
startTest
in class junit.runner.BaseTestRunner
test
- the testpublic void addError(junit.framework.Test test, java.lang.Throwable error)
addError
in class junit.runner.BaseTestRunner
test
- the testerror
- the errorpublic void addFailure(junit.framework.Test test, junit.framework.AssertionFailedError error)
addFailure
in class junit.runner.BaseTestRunner
test
- the testerror
- the errorpublic void log(junit.framework.TestResult result)
result
- the test resultpublic void logErrors(junit.framework.TestResult result)
result
- the test resultpublic void logFailures(junit.framework.TestResult result)
result
- the test resultpublic void logHeader(junit.framework.TestResult result)
result
- the test resultpublic static void run(java.lang.Class testClass)
testClass
- the class of the test casepublic static void run(junit.framework.Test suite)
suite
- the suite to runprotected junit.framework.TestResult createTestResult()
TestResult
protected void runFailed(java.lang.String message)
runFailed
in class junit.runner.BaseTestRunner
message
- the failure message
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |