org.apache.commons.chain.impl
Class CatalogFactoryBaseTestCase

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

public class CatalogFactoryBaseTestCase
extends junit.framework.TestCase

Test case for the CatalogFactoryBase class.

Version:
$Revision: 532948 $ $Date: 2007-04-27 04:53:59 +0100 (Fri, 27 Apr 2007) $
Author:
Craig R. McClanahan

Field Summary
protected  CatalogFactory factory
          The CatalogFactory instance under test.
 
Constructor Summary
CatalogFactoryBaseTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
 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 testCatalogIdentifier()
          Test getCatalog() method.
 void testDefaultCatalog()
          Test the default Catalog instance.
 void testPristine()
          Test a pristine instance of CatalogFactory.
 void testSpecificCatalog()
          Test adding a specifically named Catalog instance.
 
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

factory

protected CatalogFactory factory

The CatalogFactory instance under test.

Constructor Detail

CatalogFactoryBaseTestCase

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

testPristine

public void testPristine()

Test a pristine instance of CatalogFactory.


testDefaultCatalog

public void testDefaultCatalog()

Test the default Catalog instance.


testSpecificCatalog

public void testSpecificCatalog()

Test adding a specifically named Catalog instance.


testCatalogIdentifier

public void testCatalogIdentifier()

Test getCatalog() method.



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