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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkCommandCount
(int expected) Verify the number of configured commandsprotected void
checkExecuteLog
(String expected) Verify the contents of the execution logvoid
init()
Set up instance variables required by this test case.void
tearDown()
Tear down instance variables required by this test case.void
Test the ability to add commandsvoid
Test execution of a single non-delegating commandvoid
Test execution of a single delegating commandvoid
Test execution of a single exception-throwing commandvoid
Test execution of an attempt to add a new Command while executingvoid
Test execution of a chain that should returntrue
void
Test execution of a chain that should returnfalse
void
Test execution of a chain that should throw an exceptionvoid
Test execution of a chain that should throw an exception in the middlevoid
Test execution of a single non-delegating filtervoid
Test execution of a single delegating filtervoid
Test execution of a single exception-throwing filtervoid
Test execution of a chain that should returntrue
void
Test execution of a chain that should returnfalse
void
Test execution of a chain that should throw an exceptionvoid
Test execution of a chain that should throw an exception in the middlevoid
Test 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
-