org.apache.cactus
class ServletTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.cactus.AbstractTestCase
                    |
                    +--org.apache.cactus.AbstractWebTestCase
                          |
                          +--org.apache.cactus.ServletTestCase
All Implemented Interfaces:
Test
Direct Known Subclasses:
JspTestCase

public class ServletTestCase
extends AbstractWebTestCase

Test classes that need access to valid Servlet implicit objects (such as the the HTTP request, the HTTP response, the servlet config, ...) must subclass this class.

Version:
$Id: ServletTestCase.html,v 1.1 2003/04/14 12:27:23 sinisa Exp $
Author:
Vincent Massol

Field Summary
 ServletConfigWrapper config
          Valid ServletConfig object that you can access from the testXXX(), setUp and tearDown() methods.
          
 HttpServletRequestWrapper request
          Valid HttpServletRequest object that you can access from the testXXX(), setUp and tearDown() methods.
          
 HttpServletResponse response
          Valid HttpServletResponse object that you can access from the testXXX(), setUp and tearDown() methods.
          
 HttpSession session
          Valid HttpSession object that you can access from the testXXX(), setUp and tearDown() methods.
          
 
Fields inherited from class org.apache.cactus.AbstractTestCase
LOG_CLIENT_CONFIG
 
Constructor Summary
ServletTestCase(String theName)
           
 
Methods inherited from class org.apache.cactus.AbstractTestCase
runBare, runBareServerTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

config

public ServletConfigWrapper 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.

request

public HttpServletRequestWrapper 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.

response

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.

session

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.
Constructor Detail

ServletTestCase

public ServletTestCase(String theName)


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.