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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TestContextCreate a new instance of the appropriate Context type for this test casevoidTest state of newly created instancevoidTest a read only property on the Context implementation classvoidTest a read write property on the Context implementation classvoidTest 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:
testPristinein 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:
createContextin classContextTestCase<TestContext>- Returns:
- the new instance of the appropriate Context type
-