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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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 ability to lookup and execute single non-delegating commandvoid
Test ability to lookup and execute a chainvoid
Test ability to lookup and execute single non-delegating command using the contextvoid
Test ability to lookup and execute a chain using the contextvoid
Test ability to lookup and execute single non-delegating command, ignoring its result
-
Field Details
-
catalog
The instance ofCatalog
to use when looking up commands -
command
TheLookupCommand
instance under test. -
context
TheContext
instance 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
-