1 20 package org.apache.cactus.sample.servlet.unit; 21 22 import org.apache.cactus.ServletTestSuite; 23 24 import junit.framework.Test; 25 import junit.framework.TestCase; 26 27 33 public class TestJUnitTestCaseWrapper extends TestCase 34 { 35 38 private boolean isSetUpCalled; 39 40 43 private boolean isTestXXXCalled; 44 45 51 public static Test suite() 52 { 53 ServletTestSuite suite = new ServletTestSuite(); 54 suite.addTestSuite(TestJUnitTestCaseWrapper.class); 55 return suite; 56 } 57 58 60 64 public void setUp() 65 { 66 this.isSetUpCalled = true; 67 } 68 69 73 public void testXXX() 74 { 75 assertTrue("setUp() should have been called", this.isSetUpCalled); 76 this.isTestXXXCalled = true; 77 } 78 79 83 public void tearDown() 84 { 85 assertTrue("testXXX() should have been called", this.isTestXXXCalled); 86 } 87 88 } 89 | Popular Tags |