org.apache.cactus
Class FilterTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.cactus.internal.AbstractCactusTestCase
              extended by org.apache.cactus.FilterTestCase
All Implemented Interfaces:
junit.framework.Test, CactusTestCase

public class FilterTestCase
extends AbstractCactusTestCase
implements CactusTestCase

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 292560 2005-09-29 21:48:10Z kenney $

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.
 AbstractHttpServletRequestWrapper 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.
 
Constructor Summary
FilterTestCase()
           
FilterTestCase(java.lang.String theName)
          
FilterTestCase(java.lang.String theName, junit.framework.Test theTest)
          
 
Method Summary
protected  ProtocolHandler createProtocolHandler()
          Create a protocol handler instance that will be used to connect to the server side.
 
Methods inherited from class org.apache.cactus.internal.AbstractCactusTestCase
runBare, runBareServer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.cactus.internal.CactusTestCase
runBareServer
 

Field Detail

request

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.


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()
See Also:
AbstractCactusTestCase.AbstractCactusTestCase()

FilterTestCase

public FilterTestCase(java.lang.String theName)

See Also:
AbstractCactusTestCase.AbstractCactusTestCase(String)

FilterTestCase

public FilterTestCase(java.lang.String theName,
                      junit.framework.Test theTest)

See Also:
AbstractCactusTestCase.AbstractCactusTestCase(String, Test)
Method Detail

createProtocolHandler

protected ProtocolHandler createProtocolHandler()
Create a protocol handler instance that will be used to connect to the server side.

Specified by:
createProtocolHandler in class AbstractCactusTestCase
Returns:
the protocol handler instance
See Also:
AbstractCactusTestCase.createProtocolHandler()


Copyright © 2001-2009 The Apache Software Foundation. All Rights Reserved.