org.apache.cactus.server.runner
class WebappTestRunner

java.lang.Object
  |
  +--junit.runner.BaseTestRunner
        |
        +--org.apache.cactus.server.runner.WebappTestRunner
All Implemented Interfaces:
TestListener
Known Advisors:
LogAspect

public class WebappTestRunner
extends junit.runner.BaseTestRunner

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,v 1.2 2002/07/22 12:26:04 vmassol Exp $
Author:
Vincent Massol

Fields inherited from class junit.runner.BaseTestRunner
SUITE_METHODNAME
 
Constructor Summary
WebappTestRunner()
           
 
Method Summary
 void addError(Test theTest, Throwable theThrowable)
           Affected by: LogAspect
 void addFailure(Test theTest, AssertionFailedError theAssertionFailedError)
           Affected by: LogAspect
 void endTest(Test theTest)
           Affected by: LogAspect
 String getErrorMessage()
           
 TestSuiteLoader getLoader()
           
 void startTest(Test theTest)
           Affected by: LogAspect
 void testEnded(String theTestName)
           Affected by: LogAspect
 void testFailed(int theStatus, Test theTest, Throwable theThrowable)
           Affected by: LogAspect
 void testStarted(String theTestName)
           Affected by: LogAspect
 
Methods inherited from class junit.runner.BaseTestRunner
elapsedTimeAsString, extractClassName, getFilteredTrace, getFilteredTrace, getPreference, getPreference, getTest, inVAJava, setLoading, truncate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebappTestRunner

public WebappTestRunner()
Method Detail

addError

public void addError(Test theTest,
                     Throwable theThrowable)
Affected by:
around() in LogAspect.

addFailure

public void addFailure(Test theTest,
                       AssertionFailedError theAssertionFailedError)
Affected by:
around() in LogAspect.

endTest

public void endTest(Test theTest)
Affected by:
around() in LogAspect.

getErrorMessage

public String getErrorMessage()

getLoader

public TestSuiteLoader getLoader()

startTest

public void startTest(Test theTest)
Affected by:
around() in LogAspect.

testEnded

public void testEnded(String theTestName)
Affected by:
around() in LogAspect.

testFailed

public void testFailed(int theStatus,
                       Test theTest,
                       Throwable theThrowable)
Affected by:
around() in LogAspect.

testStarted

public void testStarted(String theTestName)
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.