Home » cactus-1.8.1-src » org.apache » cactus » [javadoc | source]
org.apache.cactus
public class: ServletTestCase [javadoc | source]
java.lang.Object
   junit.framework.TestCase
      org.apache.cactus.internal.AbstractCactusTestCase
         org.apache.cactus.ServletTestCase

All Implemented Interfaces:
    CactusTestCase

Cactus test case to unit test Servlets. Test classes that need access to valid Servlet implicit objects (such as the HTTP request, the HTTP response, the servlet config, ...) must subclass this class.
Field Summary
public  AbstractHttpServletRequestWrapper request    Valid HttpServletRequest object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value. 
public  HttpServletResponse response    Valid HttpServletResponse object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value. 
public  HttpSession session    Valid HttpSession object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value. 
public  AbstractServletConfigWrapper config    Valid ServletConfig object that you can access from the testXXX(), setUp and tearDown() methods. If you try to access it from either the beginXXX() or endXXX() methods it will have the null value. 
Constructor:
 public ServletTestCase() 
 public ServletTestCase(String theName) 
    {@inheritDoc}
    Also see:
    AbstractCactusTestCase#AbstractCactusTestCase(String)
 public ServletTestCase(String theName,
    Test theTest) 
    {@inheritDoc}
    Also see:
    AbstractCactusTestCase#AbstractCactusTestCase(String, Test)
Method from org.apache.cactus.ServletTestCase Summary:
createProtocolHandler
Methods from org.apache.cactus.internal.AbstractCactusTestCase:
createProtocolHandler,   runBare,   runBareServer
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cactus.ServletTestCase Detail:
 protected ProtocolHandler createProtocolHandler() 
    {@inheritDoc}