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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionThe instance ofCatalogto use when looking up commandsprotected DispatchLookupCommand<Context> TheDispatchLookupCommandinstance under test.protected ContextTheContextinstance on which to execute the chain. -
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 a dispatch method on a single non-delegating commandvoidTest IllegalArgumentException when incorrect command name specifiedvoidTest 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 ofCatalogto use when looking up commands -
command
TheDispatchLookupCommandinstance under test. -
context
TheContextinstance 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
-