Package org.apache.commons.chain.config
Class ConfigParserTestCase
java.lang.Object
org.apache.commons.chain.config.ConfigParserTestCase
Test Case for
org.apache.commons.chain.config.ConfigParser
.-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkCommandCount
(int expected) Verify the number of configured commandsprotected void
checkExecuteLog
(String expected) Verify the contents of the execution logvoid
init()
Set up instance variables required by this test case.protected void
Load the specified catalog from the specified resource pathvoid
tearDown()
Tear down instance variables required by this test case.void
Load the default test-config.xml file and examine the resultsvoid
Test execution of chain "Execute2a"void
Test execution of chain "Execute2b"void
Test execution of chain "Execute2c"void
Test execution of chain "Execute2d"void
Test execution of chain "Execute4a"void
Test execution of chain "Execute2b"void
Test execution of chain "Execute4c"void
Test execution of chain "Execute4d"void
Test a pristine ConfigParser instance
-
Field Details
-
catalog
TheCatalog
to contain our configured commands. -
context
TheContext
to use for execution tests. -
parser
TheConfigParser
instance under test.
-
-
Constructor Details
-
ConfigParserTestCase
public ConfigParserTestCase()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
-