Package org.apache.commons.chain.generic
Class LookupCommandTestCase
java.lang.Object
org.apache.commons.chain.generic.LookupCommandTestCase
Test case for the
LookupCommand class.- Version:
- $Revision$
- Author:
- Sean Schofield
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 ability to lookup and execute single non-delegating commandvoidTest ability to lookup and execute a chainvoidTest ability to lookup and execute single non-delegating command using the contextvoidTest ability to lookup and execute a chain using the contextvoidTest ability to lookup and execute single non-delegating command, ignoring its result
-
Field Details
-
catalog
The instance ofCatalogto use when looking up commands -
command
TheLookupCommandinstance under test. -
context
TheContextinstance on which to execute the chain.
-
-
Constructor Details
-
LookupCommandTestCase
public LookupCommandTestCase()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. -
testExecuteMethodLookup_1a
Test ability to lookup and execute single non-delegating command -
testExecuteMethodLookup_1b
Test ability to lookup and execute a chain -
testExecuteMethodLookup_2a
Test ability to lookup and execute single non-delegating command using the context -
testExecuteMethodLookup_2b
Test ability to lookup and execute a chain using the context -
testExecuteMethodLookup_3a
Test ability to lookup and execute single non-delegating command, ignoring its result -
checkExecuteLog
Verify the contents of the execution log- Parameters:
expected- the expected value
-