|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.chain.config.ConfigParser2TestCase
public class 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 | |
---|---|
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 | |
---|---|
ConfigParser2TestCase(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 |
---|
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 Detail |
---|
public ConfigParser2TestCase(String name)
name
- Name of the test caseMethod Detail |
---|
public void setUp()
setUp
in class junit.framework.TestCase
public static junit.framework.Test suite()
public void tearDown()
tearDown
in class junit.framework.TestCase
public void testDefaut() throws Exception
Exception
public void testExecute2a() throws Exception
Exception
public void testExecute2b() throws Exception
Exception
public void testExecute2c() throws Exception
Exception
public void testExecute2d() throws Exception
Exception
public void testExecute4a() throws Exception
Exception
public void testExecute4b() throws Exception
Exception
public void testExecute4c() throws Exception
Exception
public void testExecute4d() throws Exception
Exception
public void testPristine()
protected void checkCommandCount(int expected)
protected void checkExecuteLog(String expected)
protected void load(String path) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |