Package org.apache.commons.chain.config
Class ConfigParser2TestCase
java.lang.Object
org.apache.commons.chain.config.ConfigParser2TestCase
Test case identical to
ConfigParserTestCase except
that it uses the define rule to define aliases
for the commands and chains used in the test.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckCommandCount(int expected) Verify the number of configured commandsprotected voidcheckExecuteLog(String expected) Verify the contents of the execution logvoidinit()Set up instance variables required by this test case.protected voidLoad the specified catalog from the specified resource pathvoidtearDown()Tear down instance variables required by this test case.voidLoad the default test-config.xml file and examine the resultsvoidTest execution of chain "Execute2a"voidTest execution of chain "Execute2b"voidTest execution of chain "Execute2c"voidTest execution of chain "Execute2d"voidTest execution of chain "Execute4a"voidTest execution of chain "Execute2b"voidTest execution of chain "Execute4c"voidTest execution of chain "Execute4d"voidTest a pristine ConfigParser instance
-
Field Details
-
catalog
TheCatalogto contain our configured commands. -
context
TheContextto use for execution tests. -
parser
TheConfigParserinstance under test.
-
-
Constructor Details
-
ConfigParser2TestCase
public ConfigParser2TestCase()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. -
testDefaut
Load the default test-config.xml file and examine the results- Throws:
Exception- any error
-
testExecute2a
Test execution of chain "Execute2a"- Throws:
Exception- any error
-
testExecute2b
Test execution of chain "Execute2b"- Throws:
Exception- any error
-
testExecute2c
Test execution of chain "Execute2c"- Throws:
Exception- any error
-
testExecute2d
Test execution of chain "Execute2d"- Throws:
Exception- any error
-
testExecute4a
Test execution of chain "Execute4a"- Throws:
Exception- any error
-
testExecute4b
Test execution of chain "Execute2b"- Throws:
Exception- any error
-
testExecute4c
Test execution of chain "Execute4c"- Throws:
Exception- any error
-
testExecute4d
Test execution of chain "Execute4d"- Throws:
Exception- any error
-
testPristine
Test a pristine ConfigParser 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
-
load
Load the specified catalog from the specified resource path- Parameters:
path- resource path to load specified catalog- Throws:
Exception- any error
-