org.apache.commons.chain.generic
Class LookupCommandTestCase

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

public class LookupCommandTestCase
extends junit.framework.TestCase

Test case for the LookupCommand class.

Version:
$Revision: 480477 $
Author:
Sean Schofield

Field Summary
protected  Catalog catalog
          The instance of Catalog to use when looking up commands
protected  LookupCommand command
          The LookupCommand instance under test.
protected  Context context
          The Context instance on which to execute the chain.
 
Constructor Summary
LookupCommandTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
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 testExecuteMethodLookup_1a()
           
 void testExecuteMethodLookup_1b()
           
 void testExecuteMethodLookup_2a()
           
 void testExecuteMethodLookup_2b()
           
 void testExecuteMethodLookup_3a()
           
 
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 instance of Catalog to use when looking up commands


command

protected LookupCommand command
The LookupCommand instance under test.


context

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

Constructor Detail

LookupCommandTestCase

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

testExecuteMethodLookup_1a

public void testExecuteMethodLookup_1a()

testExecuteMethodLookup_1b

public void testExecuteMethodLookup_1b()

testExecuteMethodLookup_2a

public void testExecuteMethodLookup_2a()

testExecuteMethodLookup_2b

public void testExecuteMethodLookup_2b()

testExecuteMethodLookup_3a

public void testExecuteMethodLookup_3a()

checkExecuteLog

protected void checkExecuteLog(String expected)


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