Class ConfigParserTestCase

java.lang.Object
org.apache.commons.chain.config.ConfigParserTestCase

public class ConfigParserTestCase extends Object
Test Case for org.apache.commons.chain.config.ConfigParser.
  • Field Details

  • Constructor Details

  • Method Details

    • init

      @BeforeEach public void init()
      Set up instance variables required by this test case.
    • tearDown

      @AfterEach public void tearDown()
      Tear down instance variables required by this test case.
    • testDefaut

      @Test public void testDefaut() throws Exception
      Load the default test-config.xml file and examine the results
      Throws:
      Exception - any error
    • testExecute2a

      @Test public void testExecute2a() throws Exception
      Test execution of chain "Execute2a"
      Throws:
      Exception - any error
    • testExecute2b

      @Test public void testExecute2b() throws Exception
      Test execution of chain "Execute2b"
      Throws:
      Exception - any error
    • testExecute2c

      @Test public void testExecute2c() throws Exception
      Test execution of chain "Execute2c"
      Throws:
      Exception - any error
    • testExecute2d

      @Test public void testExecute2d() throws Exception
      Test execution of chain "Execute2d"
      Throws:
      Exception - any error
    • testExecute4a

      @Test public void testExecute4a() throws Exception
      Test execution of chain "Execute4a"
      Throws:
      Exception - any error
    • testExecute4b

      @Test public void testExecute4b() throws Exception
      Test execution of chain "Execute2b"
      Throws:
      Exception - any error
    • testExecute4c

      @Test public void testExecute4c() throws Exception
      Test execution of chain "Execute4c"
      Throws:
      Exception - any error
    • testExecute4d

      @Test public void testExecute4d() throws Exception
      Test execution of chain "Execute4d"
      Throws:
      Exception - any error
    • testPristine

      @Test public void testPristine()
      Test a pristine ConfigParser instance
    • checkCommandCount

      protected void checkCommandCount(int expected)
      Verify the number of configured commands
      Parameters:
      expected - the expected value
    • checkExecuteLog

      protected void checkExecuteLog(String expected)
      Verify the contents of the execution log
      Parameters:
      expected - the expected value
    • load

      protected void load(String path) throws Exception
      Load the specified catalog from the specified resource path
      Parameters:
      path - resource path to load specified catalog
      Throws:
      Exception - any error