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

All Implemented Interfaces:
    CactusTestCase

Test global client side begin() and end() methods.
Fields inherited from org.apache.cactus.ServletTestCase:
request,  response,  session,  config
Method from org.apache.cactus.sample.servlet.unit.TestGlobalBeginEnd Summary:
begin,   beginGlobalBeginEnd,   end,   endGlobalBeginEnd,   runTest,   testGlobalBeginEnd
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.TestGlobalBeginEnd Detail:
 public  void begin(WebRequest theRequest) 
    Verify that it is possible to modify the WebRequest in the common begin() method. It also verifies that begin() is called at all.
 public  void beginGlobalBeginEnd(WebRequest theRequest) 
    Verify that it is possible to modify the WebRequest in the common begin()() method. It also verifies that begin() is called at all.
 public  void end(WebResponse theResponse) 
    Verify that it is possible to read the connection object once in endXXX() and then again in end(). It also verifies that end() is called at all.
 public  void endGlobalBeginEnd(WebResponse theResponse) 
    Verify that it is possible to read the connection object once in endXXX() and then again in end(). It also verifies that end() is called at all.
 protected  void runTest() throws Throwable 
    Verifies that end() has been called correctly.
 public  void testGlobalBeginEnd() throws Exception 
    Verify that it is possible to modify the WebRequest in the common begin()() method. It also verifies that begin()() is called at all.