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: TestTearDownException [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.internal.AbstractCactusTestCase
         org.apache.cactus.ServletTestCase
            org.apache.cactus.sample.servlet.unit.TestTearDownException

All Implemented Interfaces:
    CactusTestCase

Test that tearDown() is called even when an exception occurs during the test.
Fields inherited from org.apache.cactus.ServletTestCase:
request,  response,  session,  config
Method from org.apache.cactus.sample.servlet.unit.TestTearDownException Summary:
runBare,   tearDown,   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.TestTearDownException Detail:
 public  void runBare() 
    Intercepts running test cases to check for normal exceptions.
 public  void tearDown() 
    Verify that the tearDown() is always called even when there is an exception raised during the test.
 public  void testTearDown() throws Exception 
    Verify that the tearDown() is always called even when there is an exception raised during the test.