Package org.apache.commons.chain.impl
Class ChainBaseTestCase
java.lang.Object
org.apache.commons.chain.impl.ChainBaseTestCase
Test case for the
ChainBase class.- Version:
- $Revision$ $Date$
- Author:
- Craig R. McClanahan
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCommandCount(int expected) Verify the number of configured commandsprotected voidcheckExecuteLog(String expected) Verify the contents of the execution logvoidinit()Set up instance variables required by this test case.voidtearDown()Tear down instance variables required by this test case.voidTest the ability to add commandsvoidTest execution of a single non-delegating commandvoidTest execution of a single delegating commandvoidTest execution of a single exception-throwing commandvoidTest execution of an attempt to add a new Command while executingvoidTest execution of a chain that should returntruevoidTest execution of a chain that should returnfalsevoidTest execution of a chain that should throw an exceptionvoidTest execution of a chain that should throw an exception in the middlevoidTest execution of a single non-delegating filtervoidTest execution of a single delegating filtervoidTest execution of a single exception-throwing filtervoidTest execution of a chain that should returntruevoidTest execution of a chain that should returnfalsevoidTest execution of a chain that should throw an exceptionvoidTest execution of a chain that should throw an exception in the middlevoidTest state of newly created instance
-
Field Details
-
Constructor Details
-
ChainBaseTestCase
public ChainBaseTestCase()The Default-Constructor for this class.
-
-
Method Details
-
init
Set up instance variables required by this test case. -
tearDown
Tear down instance variables required by this test case. -
testCommands
Test the ability to add commands -
testExecute1a
Test execution of a single non-delegating command -
testExecute1b
Test execution of a single delegating command -
testExecute1c
Test execution of a single exception-throwing command -
testExecute1d
Test execution of an attempt to add a new Command while executing -
testExecute2a
Test execution of a chain that should returntrue -
testExecute2b
Test execution of a chain that should returnfalse -
testExecute2c
Test execution of a chain that should throw an exception -
testExecute2d
Test execution of a chain that should throw an exception in the middle -
testExecute3a
Test execution of a single non-delegating filter -
testExecute3b
Test execution of a single delegating filter -
testExecute3c
Test execution of a single exception-throwing filter -
testExecute4a
Test execution of a chain that should returntrue -
testExecute4b
Test execution of a chain that should returnfalse -
testExecute4c
Test execution of a chain that should throw an exception -
testExecute4d
Test execution of a chain that should throw an exception in the middle -
testNewInstance
Test state of newly created instance -
checkCommandCount
Verify the number of configured commands- Parameters:
expected- the expected value
-
checkExecuteLog
Verify the contents of the execution log- Parameters:
expected- the expected value
-