org.apache.commons.chain.impl
Class ContextBaseTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.chain.impl.ContextBaseTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
PortletWebContextTestCase, ServletWebContextTestCase, TestContextTestCase

public class ContextBaseTestCase
extends junit.framework.TestCase

Test case for the ContextBase class.

Version:
$Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan

Field Summary
protected  Context context
          The Context instance under test.
 
Constructor Summary
ContextBaseTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkAttributeCount(int expected)
           
protected  Context createContext()
           
protected  int expectedAttributeCount()
           
 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 testAttributes()
           
 void testContains()
           
 void testEquals()
           
 void testKeySet()
           
 void testPristine()
           
 void testPutAll()
           
 void 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

context

protected Context context
The Context instance under test.

Constructor Detail

ContextBaseTestCase

public ContextBaseTestCase(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 junit.framework.TestCase

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 junit.framework.TestCase

testAttributes

public void testAttributes()

testContains

public void testContains()

testEquals

public void testEquals()

testKeySet

public void testKeySet()

testPristine

public void testPristine()

testPutAll

public void testPutAll()

testSeriaization

public void testSeriaization()
                      throws Exception
Throws:
Exception

checkAttributeCount

protected void checkAttributeCount(int expected)

createContext

protected Context createContext()

expectedAttributeCount

protected int expectedAttributeCount()


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