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

All Implemented Interfaces:
    CactusTestCase

Tests manipulating HTTP headers.
Fields inherited from org.apache.cactus.ServletTestCase:
request,  response,  session,  config
Method from org.apache.cactus.sample.servlet.unit.TestHttpHeaders Summary:
beginSendMultivaluedHeader,   beginSetContentTypeHeader,   endResponseAddHeaders,   testResponseAddHeaders,   testSendMultivaluedHeader,   testSetContentTypeHeader
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.TestHttpHeaders Detail:
 public  void beginSendMultivaluedHeader(WebRequest theRequest) 
    Verify that we can simulate several HTTP header values with the same header name.
 public  void beginSetContentTypeHeader(WebRequest theRequest) 
    Verify we can set the content type by setting an HTTP header.
 public  void endResponseAddHeaders(WebResponse theResponse) 
    Verify that we can set several headers in the response and assert them in endXXX().
 public  void testResponseAddHeaders() 
    Verify that we can set several headers in the response and assert them in endXXX().
 public  void testSendMultivaluedHeader() 
    Verify that we can simulate several HTTP header values with the same header name.
 public  void testSetContentTypeHeader() 
    Verify we can set the content type by setting an HTTP header.