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

All Implemented Interfaces:
    CactusTestCase

Tests that exercise the HTTP request.
Fields inherited from org.apache.cactus.ServletTestCase:
request,  response,  session,  config
Method from org.apache.cactus.sample.servlet.unit.TestHttpRequest Summary:
beginGetPathTranslated,   beginSendUserDataAndReadWithObjectInputStream,   beginSendUserDataAndReadWithReader,   testGetPathTranslated,   testRemoteClientCheck,   testSendUserDataAndReadWithObjectInputStream,   testSendUserDataAndReadWithReader
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.TestHttpRequest Detail:
 public  void beginGetPathTranslated(WebRequest theRequest) 
    Verify that HttpServletRequestWrapper.getPathTranslated() takes into account the simulated URL (if any).
 public  void beginSendUserDataAndReadWithObjectInputStream(WebRequest theRequest) throws Exception 
    Verify that we can send arbitrary data in the request body and read the data back on the server side using an ObjectInputStream.
 public  void beginSendUserDataAndReadWithReader(WebRequest theRequest) 
    Verify that we can send arbitrary data in the request body and read the data back on the server side using a Reader.
 public  void testGetPathTranslated() 
    Verify that HttpServletRequestWrapper.getPathTranslated() takes into account the simulated URL (if any) or null in situations where the servlet container cannot determine a valid file path for these methods, such as when the web application is executed from an archive, on a remote file system not accessible locally, or in a database (see section SRV.4.5 of the Servlet 2.3 spec).
 public  void testRemoteClientCheck() 
    Verify that we can simulate the client remote IP address and the client remote host name.
 public  void testSendUserDataAndReadWithObjectInputStream() throws Exception 
    Verify that we can send arbitrary data in the request body and read the data back on the server side using an ObjectInputStream.
 public  void testSendUserDataAndReadWithReader() throws Exception 
    Verify that we can send arbitrary data in the request body and read the data back on the server side using a Reader.