Package org.apache.commons.chain.generic
Class DispatchLookupCommandTestCase
java.lang.Object
org.apache.commons.chain.generic.DispatchLookupCommandTestCase
Test case for the
DispatchLookupCommand
class.- Version:
- $Revision$
- Author:
- Sean Schofield
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionThe instance ofCatalog
to use when looking up commandsprotected DispatchLookupCommand
<Context> TheDispatchLookupCommand
instance under test.protected Context
TheContext
instance on which to execute the chain. -
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 a dispatch method on a single non-delegating commandvoid
Test IllegalArgumentException when incorrect command name specifiedvoid
Test ability to lookup and execute a dispatch method on a single non-delegating command (using context to specify method name)
-
Field Details
-
catalog
The instance ofCatalog
to use when looking up commands -
command
TheDispatchLookupCommand
instance under test. -
context
TheContext
instance on which to execute the chain.
-
-
Constructor Details
-
DispatchLookupCommandTestCase
public DispatchLookupCommandTestCase()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. -
testExecuteDispatchLookup_1a
Test ability to lookup and execute a dispatch method on a single non-delegating command -
testExecuteDispatchLookup_2
Test IllegalArgumentException when incorrect command name specified -
testExecuteDispatchLookup_3
Test ability to lookup and execute a dispatch method on a single non-delegating command (using context to specify method name) -
checkExecuteLog
Verify the contents of the execution log- Parameters:
expected
- the expected value
-