| org.apache.cactus.internal.server.runner.WebappTestRunner
WebappTestRunner | public class WebappTestRunner extends BaseTestRunner (Code) | | 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.
version: $Id: WebappTestRunner.java 238991 2004-05-22 11:34:50Z vmassol $ |
Method Summary | |
public void | addError(Test theTest, Throwable theThrowable) | public void | addFailure(Test theTest, AssertionFailedError theAssertionFailedError) | public void | endTest(Test theTest) | public String | getErrorMessage() | public TestSuiteLoader | getLoader() Overridden from BaseTestRunner in order to use either the context
class loader or the webapp one. | protected void | runFailed(String theMessage) Event called by the base test runner when it fails to load a test suite. | public void | startTest(Test theTest) | public void | testEnded(String theTestName) Event called by the base test runner when the test ends. | public void | testFailed(int theStatus, Test theTest, Throwable theThrowable) Event called by the base test runner when the test fails. | public void | testStarted(String theTestName) Event called by the base test runner when the test starts. |
addError | public void addError(Test theTest, Throwable theThrowable)(Code) | | See Also: BaseTestRunner.addError(TestThrowable) |
addFailure | public void addFailure(Test theTest, AssertionFailedError theAssertionFailedError)(Code) | | See Also: BaseTestRunner.addFailure(TestAssertionFailedError) |
endTest | public void endTest(Test theTest)(Code) | | See Also: BaseTestRunner.endTest(Test) |
getErrorMessage | public String getErrorMessage()(Code) | | the error message provided by BaseTestRunner if itfailed to load the test suite |
getLoader | public TestSuiteLoader getLoader()(Code) | | Overridden from BaseTestRunner in order to use either the context
class loader or the webapp one.
a loader that loads classes using the context class loader orthe webapp class loader. |
runFailed | protected void runFailed(String theMessage)(Code) | | Event called by the base test runner when it fails to load a test suite.
Parameters: theMessage - the message of the failure |
startTest | public void startTest(Test theTest)(Code) | | See Also: BaseTestRunner.startTest(Test) |
testEnded | public void testEnded(String theTestName)(Code) | | Event called by the base test runner when the test ends.
Parameters: theTestName - the test case name |
testFailed | public void testFailed(int theStatus, Test theTest, Throwable theThrowable)(Code) | | Event called by the base test runner when the test fails.
Parameters: theStatus - the status code of the error Parameters: theTest - the test object that failed Parameters: theThrowable - the exception that was thrown |
testStarted | public void testStarted(String theTestName)(Code) | | Event called by the base test runner when the test starts.
Parameters: theTestName - the test case name |
|
|