Package org.apache.commons.chain.impl
Class TestContextTestCase
java.lang.Object
org.apache.commons.chain.ContextTestCase<TestContext>
org.apache.commons.chain.impl.TestContextTestCase
Extension of
ContextBaseTestCase
to validate property
delegation.-
Field Summary
Fields inherited from class org.apache.commons.chain.ContextTestCase
context
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected TestContext
Create a new instance of the appropriate Context type for this test casevoid
Test state of newly created instancevoid
Test a read only property on the Context implementation classvoid
Test a read write property on the Context implementation classvoid
Test a write only property on the Context implementation classMethods inherited from class org.apache.commons.chain.ContextTestCase
checkAttributeCount, expectedAttributeCount, init, tearDown, testAttributes, testContains, testEquals, testKeySet, testPutAll, testSerialization
-
Constructor Details
-
TestContextTestCase
public TestContextTestCase()
-
-
Method Details
-
testPristine
Test state of newly created instance- Overrides:
testPristine
in classContextTestCase<TestContext>
-
testReadOnly
Test a read only property on the Context implementation class -
testReadWrite
Test a read write property on the Context implementation class -
testWriteOnly
Test a write only property on the Context implementation class -
createContext
Create a new instance of the appropriate Context type for this test case- Specified by:
createContext
in classContextTestCase<TestContext>
- Returns:
- the new instance of the appropriate Context type
-