org.apache.commons.chain.impl
Class ChainBaseTestCase

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

public class ChainBaseTestCase
extends junit.framework.TestCase

Test case for the ChainBase class.

Version:
$Revision: 480477 $ $Date: 2006-11-29 08:34:52 +0000 (Wed, 29 Nov 2006) $
Author:
Craig R. McClanahan

Field Summary
protected  Chain chain
          The Chain instance under test.
protected  Context context
          The Context instance on which to execute the chain.
 
Constructor Summary
ChainBaseTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
protected  void checkCommandCount(int expected)
           
protected  void checkExecuteLog(String expected)
           
 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 testCommands()
           
 void testExecute1a()
           
 void testExecute1b()
           
 void testExecute1c()
           
 void testExecute1d()
           
 void testExecute2a()
           
 void testExecute2b()
           
 void testExecute2c()
           
 void testExecute2d()
           
 void testExecute3a()
           
 void testExecute3b()
           
 void testExecute3c()
           
 void testExecute4a()
           
 void testExecute4b()
           
 void testExecute4c()
           
 void testExecute4d()
           
 void testNewInstance()
           
 
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

chain

protected Chain chain
The Chain instance under test.


context

protected Context context
The Context instance on which to execute the chain.

Constructor Detail

ChainBaseTestCase

public ChainBaseTestCase(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

testCommands

public void testCommands()

testExecute1a

public void testExecute1a()

testExecute1b

public void testExecute1b()

testExecute1c

public void testExecute1c()

testExecute1d

public void testExecute1d()

testExecute2a

public void testExecute2a()

testExecute2b

public void testExecute2b()

testExecute2c

public void testExecute2c()

testExecute2d

public void testExecute2d()

testExecute3a

public void testExecute3a()

testExecute3b

public void testExecute3b()

testExecute3c

public void testExecute3c()

testExecute4a

public void testExecute4a()

testExecute4b

public void testExecute4b()

testExecute4c

public void testExecute4c()

testExecute4d

public void testExecute4d()

testNewInstance

public void testNewInstance()

checkCommandCount

protected void checkCommandCount(int expected)

checkExecuteLog

protected void checkExecuteLog(String expected)


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