Clover coverage report - Cactus 1.4 for J2EE API 13
Coverage timestamp: Sun Aug 25 2002 18:02:10 BST
file stats: LOC: 112   Methods: 11
NCLOC: 33   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
WebappTestRunner.java - 0% 0% 0%
 1   
 /*   Generated by AspectJ version 1.0.5 */
 2   
 package org.apache.cactus.server.runner;
 3   
 import junit.runner.BaseTestRunner;
 4   
 import junit.runner.TestSuiteLoader;
 5   
 import junit.framework.Test;
 6   
 import junit.framework.AssertionFailedError;
 7   
 
 8   
 /** 
 9   
  * JUnit Test Runner that can load test cases that are in the classpath of 
 10   
  * a webapp. This test runner is supposed to be executed from within the 
 11   
  * webapp. 
 12   
  * 
 13   
  * @author <a href="mailto:vmassol@apache.org">Vincent Massol</a> 
 14   
  * 
 15   
  * @version $Id: WebappTestRunner.java,v 1.2 2002/07/22 12:26:04 vmassol Exp $ 
 16   
  */
 17   
 public class WebappTestRunner extends BaseTestRunner {
 18   
   /** 
 19   
        * Error message if the suite failed to load. 
 20   
        */
 21   
   private String errorMessage;
 22   
   /** 
 23   
        * Overridden from BaseTestRunner in order to use either the context 
 24   
        * class loader or the webapp one. 
 25   
        * 
 26   
        * @return a loader that loads classes using the context class loader or 
 27   
        *         the webapp class loader. 
 28   
        */
 29  0
   public TestSuiteLoader getLoader() {
 30  0
     return new WebappTestSuiteLoader();
 31   
   } 
 32   
 
 33   
   /** 
 34   
        * Event called by the base test runner when it fails to load a test suite. 
 35   
        * 
 36   
        * @param theMessage the message of the failure 
 37   
        */
 38  0
   protected void runFailed(String theMessage) {
 39  0
     this.errorMessage = theMessage;
 40   
   } 
 41   
 
 42   
   /** 
 43   
        * @return the error message provided by <code>BaseTestRunner</code> if it 
 44   
        *         failed to load the test suite 
 45   
        */
 46  0
   public String getErrorMessage() {
 47  0
     return this.errorMessage;
 48   
   } 
 49   
 
 50   
   /** 
 51   
        * Event called by the base test runner when the test ends. 
 52   
        * 
 53   
        * @param theTestName the test case name 
 54   
        */
 55  0
   public void testEnded(String theTestName) {
 56   
   } 
 57   
 
 58   
   /** 
 59   
        * Event called by the base test runner when the test fails. 
 60   
        * 
 61   
        * @param theStatus the status code of the error 
 62   
        * @param theTest the test object that failed 
 63   
        * @param theThrowable the exception that was thrown 
 64   
        */
 65  0
   public void testFailed(int theStatus, Test theTest, Throwable theThrowable) {
 66   
   } 
 67   
 
 68   
   /** 
 69   
        * Event called by the base test runner when the test starts. 
 70   
        * 
 71   
        * @param theTestName the test case name 
 72   
        */
 73  0
   public void testStarted(String theTestName) {
 74   
   } 
 75   
 
 76   
   /** 
 77   
        * @see BaseTestRunner#addError(Test, Throwable) 
 78   
        */
 79  0
   public void addError(Test theTest, Throwable theThrowable) {
 80   
   } 
 81   
 
 82   
   /** 
 83   
        * @see BaseTestRunner#addFailure(Test, AssertionFailedError) 
 84   
        */
 85  0
   public void addFailure(Test theTest, AssertionFailedError theAssertionFailedError) {
 86   
   } 
 87   
 
 88   
   /** 
 89   
        * @see BaseTestRunner#endTest(Test) 
 90   
        */
 91  0
   public void endTest(Test theTest) {
 92   
   } 
 93   
 
 94   
   /** 
 95   
        * @see BaseTestRunner#startTest(Test) 
 96   
        */
 97  0
   public void startTest(Test theTest) {
 98   
   } 
 99   
 
 100   
   /** 
 101   
    * JUnit Test Runner that can load test cases that are in the classpath of 
 102   
    * a webapp. This test runner is supposed to be executed from within the 
 103   
    * webapp. 
 104   
    * 
 105   
    * @author <a href="mailto:vmassol@apache.org">Vincent Massol</a> 
 106   
    * 
 107   
    * @version $Id: WebappTestRunner.java,v 1.2 2002/07/22 12:26:04 vmassol Exp $ 
 108   
    */
 109  0
   public WebappTestRunner() {
 110  0
     super();
 111   
   } 
 112   
 }