|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunit.runner.BaseTestRunner
org.apache.cactus.server.runner.WebappTestRunner
JUnit Test Runner that can load test cases that are in the classpath of a webapp. This test runner is supposed to be executed from within the webapp.
| Field Summary |
| Fields inherited from class junit.runner.BaseTestRunner |
SUITE_METHODNAME |
| Constructor Summary | |
WebappTestRunner()
|
|
| Method Summary | |
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. |
| Methods inherited from class junit.runner.BaseTestRunner |
clearStatus, elapsedTimeAsString, 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 WebappTestRunner()
| Method Detail |
public junit.runner.TestSuiteLoader getLoader()
protected void runFailed(java.lang.String theMessage)
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)
theTestName - the test case name
public void testFailed(int theStatus,
junit.framework.Test theTest,
java.lang.Throwable theThrowable)
theStatus - the status code of the errortheTest - the test object that failedtheThrowable - the exception that was thrownpublic void testStarted(java.lang.String theTestName)
theTestName - the test case name
public void addError(junit.framework.Test theTest,
java.lang.Throwable theThrowable)
BaseTestRunner.addError(Test, Throwable)
public void addFailure(junit.framework.Test theTest,
junit.framework.AssertionFailedError theAssertionFailedError)
BaseTestRunner.addFailure(Test, AssertionFailedError)public void endTest(junit.framework.Test theTest)
BaseTestRunner.endTest(Test)public void startTest(junit.framework.Test theTest)
BaseTestRunner.startTest(Test)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||