Save This Page
Home » cactus-1.8.0-src » org.apache.cactus.sample.servlet.unit » [javadoc | source]
org.apache.cactus.sample.servlet.unit
public class: TestSetUpTearDown [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.internal.AbstractCactusTestCase
         org.apache.cactus.ServletTestCase
            org.apache.cactus.sample.servlet.unit.TestSetUpTearDown

All Implemented Interfaces:
    CactusTestCase

Test that setUp() and tearDown() methods are called and can access implicit objects in ServletTestCase.
Fields inherited from org.apache.cactus.ServletTestCase:
request,  response,  session,  config
Method from org.apache.cactus.sample.servlet.unit.TestSetUpTearDown Summary:
endTearDown,   setUp,   tearDown,   testSetUp,   testTearDown
Methods from org.apache.cactus.ServletTestCase:
createProtocolHandler
Methods from org.apache.cactus.internal.AbstractCactusTestCase:
createProtocolHandler,   runBare,   runBareServer
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.sample.servlet.unit.TestSetUpTearDown Detail:
 public  void endTearDown(WebResponse theResponse) 
    Verify that tearDown() has been called and that it created an HTTP reponse header.
 protected  void setUp() 
    Put a value in the session to verify that this method is called prior to the test, and that it can access servlet implicit objects.
 protected  void tearDown() 
    Set an HTTP response header to verify that this method is called after the test, and that it can access servlet implicit objects.
 public  void testSetUp() 
    Verify that setUp() has been called and that it put a value in the session object.
 public  void testTearDown() 
    Verify that tearDown() has been called and that it created an HTTP reponse header.