public class WebappTestRunner
extends junit.runner.BaseTestRunner
Constructor and Description |
---|
WebappTestRunner() |
Modifier and Type | Method and Description |
---|---|
void |
addError(junit.framework.Test theTest,
java.lang.Throwable theThrowable) |
void |
addFailure(junit.framework.Test theTest,
junit.framework.AssertionFailedError theAssertionFailedError) |
void |
endTest(junit.framework.Test theTest) |
java.lang.String |
getErrorMessage() |
junit.runner.TestSuiteLoader |
getLoader()
Overridden from BaseTestRunner in order to use either the context
class loader or the webapp one.
|
protected void |
runFailed(java.lang.String theMessage)
Event called by the base test runner when it fails to load a test suite.
|
void |
startTest(junit.framework.Test theTest) |
void |
testEnded(java.lang.String theTestName)
Event called by the base test runner when the test ends.
|
void |
testFailed(int theStatus,
junit.framework.Test theTest,
java.lang.Throwable theThrowable)
Event called by the base test runner when the test fails.
|
void |
testStarted(java.lang.String theTestName)
Event called by the base test runner when the test starts.
|
clearStatus, elapsedTimeAsString, extractClassName, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getPreferences, getTest, inMac, inVAJava, loadSuiteClass, processArguments, savePreferences, setLoading, setPreference, setPreferences, showStackRaw, truncate, useReloadingTestSuiteLoader
public junit.runner.TestSuiteLoader getLoader()
getLoader
in class junit.runner.BaseTestRunner
protected void runFailed(java.lang.String theMessage)
runFailed
in class junit.runner.BaseTestRunner
theMessage
- the message of the failurepublic java.lang.String getErrorMessage()
BaseTestRunner
if it
failed to load the test suitepublic void testEnded(java.lang.String theTestName)
testEnded
in class junit.runner.BaseTestRunner
theTestName
- the test case namepublic void testFailed(int theStatus, junit.framework.Test theTest, java.lang.Throwable theThrowable)
testFailed
in class junit.runner.BaseTestRunner
theStatus
- the status code of the errortheTest
- the test object that failedtheThrowable
- the exception that was thrownpublic void testStarted(java.lang.String theTestName)
testStarted
in class junit.runner.BaseTestRunner
theTestName
- the test case namepublic void addError(junit.framework.Test theTest, java.lang.Throwable theThrowable)
addError
in interface junit.framework.TestListener
addError
in class junit.runner.BaseTestRunner
BaseTestRunner.addError(Test, Throwable)
public void addFailure(junit.framework.Test theTest, junit.framework.AssertionFailedError theAssertionFailedError)
addFailure
in interface junit.framework.TestListener
addFailure
in class junit.runner.BaseTestRunner
BaseTestRunner.addFailure(Test, AssertionFailedError)
public void endTest(junit.framework.Test theTest)
endTest
in interface junit.framework.TestListener
endTest
in class junit.runner.BaseTestRunner
BaseTestRunner.endTest(Test)
public void startTest(junit.framework.Test theTest)
startTest
in interface junit.framework.TestListener
startTest
in class junit.runner.BaseTestRunner
BaseTestRunner.startTest(Test)
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.