org.apache.commons.chain.web.servlet
Class ServletWebContextTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.chain.impl.ContextBaseTestCase
              extended by org.apache.commons.chain.web.servlet.ServletWebContextTestCase
All Implemented Interfaces:
junit.framework.Test

public class ServletWebContextTestCase
extends ContextBaseTestCase

Extension of ContextBaseTestCase to validate the extra functionality of this implementation.


Field Summary
protected  HttpServletRequest request
           
protected  HttpServletResponse response
           
protected  ServletContext scontext
           
protected  HttpSession session
           
 
Fields inherited from class org.apache.commons.chain.impl.ContextBaseTestCase
context
 
Constructor Summary
ServletWebContextTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkEntrySet(Map map, boolean modifiable)
           
protected  void checkMapSize(Map map, int size)
           
protected  Context createContext()
           
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testApplicationScope()
           
 void testCookies()
           
 void testEquals()
           
 void testHeader()
           
 void testHeaderValues()
           
 void testInitParam()
           
 void testParam()
           
 void testParamValues()
           
 void testPristine()
           
 void testRelease()
           
 void testRequestScope()
           
 void testSessionScope()
           
 void testSessionScopeWithoutSession()
           
 
Methods inherited from class org.apache.commons.chain.impl.ContextBaseTestCase
checkAttributeCount, expectedAttributeCount, testAttributes, testContains, testKeySet, testPutAll, testSeriaization
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scontext

protected ServletContext scontext

request

protected HttpServletRequest request

response

protected HttpServletResponse response

session

protected HttpSession session
Constructor Detail

ServletWebContextTestCase

public ServletWebContextTestCase(String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

public void setUp()
Set up instance variables required by this test case.

Overrides:
setUp in class ContextBaseTestCase

suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class ContextBaseTestCase

testApplicationScope

public void testApplicationScope()

testEquals

public void testEquals()
Overrides:
testEquals in class ContextBaseTestCase

testHeader

public void testHeader()

testHeaderValues

public void testHeaderValues()

testInitParam

public void testInitParam()

testParam

public void testParam()

testParamValues

public void testParamValues()

testCookies

public void testCookies()

testPristine

public void testPristine()
Overrides:
testPristine in class ContextBaseTestCase

testRelease

public void testRelease()

testRequestScope

public void testRequestScope()

testSessionScope

public void testSessionScope()

testSessionScopeWithoutSession

public void testSessionScopeWithoutSession()

checkMapSize

protected void checkMapSize(Map map,
                            int size)

checkEntrySet

protected void checkEntrySet(Map map,
                             boolean modifiable)

createContext

protected Context createContext()
Overrides:
createContext in class ContextBaseTestCase


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.