org.apache.cactus.sample.servlet.unit
public class: TestJUnitTestCaseWrapper [javadoc |
source]
java.lang.Object
junit.framework.TestCase
org.apache.cactus.sample.servlet.unit.TestJUnitTestCaseWrapper
Pure JUnit Test Case that we run on the server side using Cactus, by
using a
ServletTestSuite .
- version:
$ - Id: TestJUnitTestCaseWrapper.java,v 1.3 2004/02/29 16:36:44 vmassol Exp $
| Method from org.apache.cactus.sample.servlet.unit.TestJUnitTestCaseWrapper Detail: |
public void setUp() {
this.isSetUpCalled = true;
}
No-op test just to verify that pure JUnit tests can be executed on the
server side using Cactus. |
public static Test suite() {
ServletTestSuite suite = new ServletTestSuite();
suite.addTestSuite(TestJUnitTestCaseWrapper.class);
return suite;
}
Runs this pure JUnit Test Case with Cactus, wrapping it in
a Servlet Test Case. |
public void tearDown() {
assertTrue("testXXX() should have been called", this.isTestXXXCalled);
}
No-op test just to verify that pure JUnit tests can be executed on the
server side using Cactus. |
public void testXXX() {
assertTrue("setUp() should have been called", this.isSetUpCalled);
this.isTestXXXCalled = true;
}
No-op test just to verify that pure JUnit tests can be executed on the
server side using Cactus. |