1 20 package org.apache.cactus.internal.server.runner; 21 22 import junit.framework.AssertionFailedError; 23 import junit.framework.Test; 24 import junit.runner.BaseTestRunner; 25 import junit.runner.TestSuiteLoader; 26 27 34 public class WebappTestRunner extends BaseTestRunner 35 { 36 39 private String errorMessage; 40 41 48 public TestSuiteLoader getLoader() 49 { 50 return new WebappTestSuiteLoader(); 51 } 52 53 58 protected void runFailed(String theMessage) 59 { 60 this.errorMessage = theMessage; 61 } 62 63 67 public String getErrorMessage() 68 { 69 return this.errorMessage; 70 } 71 72 77 public void testEnded(String theTestName) 78 { 79 } 81 82 89 public void testFailed(int theStatus, Test theTest, Throwable theThrowable) 90 { 91 } 93 94 99 public void testStarted(String theTestName) 100 { 101 } 103 104 107 public void addError(Test theTest, Throwable theThrowable) 108 { 109 } 111 112 115 public void addFailure(Test theTest, 116 AssertionFailedError theAssertionFailedError) 117 { 118 } 120 121 124 public void endTest(Test theTest) 125 { 126 } 128 129 132 public void startTest(Test theTest) 133 { 134 } 136 } 137 | Popular Tags |