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

All Implemented Interfaces:
    CactusTestCase

Tests manipulating The Request Dispatcher.
Fields inherited from org.apache.cactus.ServletTestCase:
request,  response,  session,  config
Method from org.apache.cactus.sample.servlet.unit.TestRequestDispatcher Summary:
beginGetRequestDispatcherFromRequest2,   endGetRequestDispatcherFromNamedDispatcherOK,   endGetRequestDispatcherFromRequest1,   endGetRequestDispatcherFromRequest2,   testGetRequestDispatcherFromNamedDispatcherInvalid,   testGetRequestDispatcherFromNamedDispatcherOK,   testGetRequestDispatcherFromRequest1,   testGetRequestDispatcherFromRequest2
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.TestRequestDispatcher Detail:
 public  void beginGetRequestDispatcherFromRequest2(WebRequest theRequest) 
    Verify that request.getRequestDispatcher() works properly with a relative path.
 public  void endGetRequestDispatcherFromNamedDispatcherOK(WebResponse theResponse) throws IOException 
    Verify that getNamedDispatcher() can be used to get a dispatcher.
 public  void endGetRequestDispatcherFromRequest1(WebResponse theResponse) throws IOException 
    Verify that request.getRequestDispatcher() works properly with an absolute path
 public  void endGetRequestDispatcherFromRequest2(WebResponse theResponse) throws IOException 
    Verify that request.getRequestDispatcher() works properly with a relative path.
 public  void testGetRequestDispatcherFromNamedDispatcherInvalid() throws IOException, ServletException 
    Verify that getNamedDispatcher() returns null when passed an invalid name.
 public  void testGetRequestDispatcherFromNamedDispatcherOK() throws IOException, ServletException 
    Verify that getNamedDispatcher() can be used to get a dispatcher.
 public  void testGetRequestDispatcherFromRequest1() throws IOException, ServletException 
    Verify that request.getRequestDispatcher() works properly with an absolute path
 public  void testGetRequestDispatcherFromRequest2() throws IOException, ServletException 
    Verify that request.getRequestDispatcher() works properly with a relative path.