org.apache.cactus
Class FilterTestCase

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--org.apache.cactus.AbstractTestCase
                    |
                    +--org.apache.cactus.FilterTestCase
All Implemented Interfaces:
junit.framework.Test

public class FilterTestCase
extends AbstractTestCase

Test classes that need access to valid Filter implicit objects (such as the FilterConfig and FilterChain objects) must subclass this class.

Version:
$Id: FilterTestCase.java,v 1.3 2001/09/14 20:12:25 pier Exp $
Author:
Vincent Massol

Field Summary
 FilterConfigWrapper config
          Valid FilterConfig object that you can access from the testXXX(), setUp and tearDown() methods.
 javax.servlet.FilterChain filterChain
          Valid FilterChain 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.
 javax.servlet.http.HttpServletResponse response
          Valid HttpServletResponse object that you can access from the testXXX(), setUp and tearDown() methods.
 
Fields inherited from class org.apache.cactus.AbstractTestCase
currentTestMethod
 
Constructor Summary
FilterTestCase(java.lang.String theName)
          Constructs a JUnit test case with the given name.
 
Methods inherited from class org.apache.cactus.AbstractTestCase
runBare, runBareServerTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, name, run, run, setName, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, 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

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 javax.servlet.http.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.

config

public FilterConfigWrapper config
Valid FilterConfig 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.

filterChain

public javax.servlet.FilterChain filterChain
Valid FilterChain 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

FilterTestCase

public FilterTestCase(java.lang.String theName)
Constructs a JUnit test case with the given name.
Parameters:
theName - the name of the test case


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