org.apache.commons.chain.config
Class ConfigParserTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.chain.config.ConfigParserTestCase
All Implemented Interfaces:
junit.framework.Test

public class ConfigParserTestCase
extends junit.framework.TestCase

Test Case for org.apache.commons.chain.config.ConfigParser.


Field Summary
protected  Catalog catalog
          The Catalog to contain our configured commands.
protected  Context context
          The Context to use for execution tests.
protected  ConfigParser parser
          The ConfigParser instance under test.
 
Constructor Summary
ConfigParserTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkCommandCount(int expected)
           
protected  void checkExecuteLog(String expected)
           
protected  void load(String path)
           
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testDefaut()
           
 void testExecute2a()
           
 void testExecute2b()
           
 void testExecute2c()
           
 void testExecute2d()
           
 void testExecute4a()
           
 void testExecute4b()
           
 void testExecute4c()
           
 void testExecute4d()
           
 void testPristine()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

catalog

protected Catalog catalog

The Catalog to contain our configured commands.


context

protected Context context

The Context to use for execution tests.


parser

protected ConfigParser parser

The ConfigParser instance under test.

Constructor Detail

ConfigParserTestCase

public ConfigParserTestCase(String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

public void setUp()
Set up instance variables required by this test case.

Overrides:
setUp in class junit.framework.TestCase

suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class junit.framework.TestCase

testDefaut

public void testDefaut()
                throws Exception
Throws:
Exception

testExecute2a

public void testExecute2a()
                   throws Exception
Throws:
Exception

testExecute2b

public void testExecute2b()
                   throws Exception
Throws:
Exception

testExecute2c

public void testExecute2c()
                   throws Exception
Throws:
Exception

testExecute2d

public void testExecute2d()
                   throws Exception
Throws:
Exception

testExecute4a

public void testExecute4a()
                   throws Exception
Throws:
Exception

testExecute4b

public void testExecute4b()
                   throws Exception
Throws:
Exception

testExecute4c

public void testExecute4c()
                   throws Exception
Throws:
Exception

testExecute4d

public void testExecute4d()
                   throws Exception
Throws:
Exception

testPristine

public void testPristine()

checkCommandCount

protected void checkCommandCount(int expected)

checkExecuteLog

protected void checkExecuteLog(String expected)

load

protected void load(String path)
             throws Exception
Throws:
Exception


Copyright © 2003-2010 The Apache Software Foundation. All Rights Reserved.