org.apache.avalon.excalibur.component.test
Class ExcaliburComponentManagerTestCase

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.avalon.excalibur.component.test.ExcaliburComponentManagerTestCase
All Implemented Interfaces:
junit.framework.Test

Deprecated. ECM is no longer supported

public class ExcaliburComponentManagerTestCase
extends junit.framework.TestCase

This class is for testing the ExcaliburComponentManager to verify that it is correctly handling component lifestyle management.

Version:
$Revision: 1.1 $
Author:
Avalon Development Team

Nested Class Summary
static class ExcaliburComponentManagerTestCase.AbstractBadCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.AbstractBadParent
          Deprecated.  
static class ExcaliburComponentManagerTestCase.AbstractGoodCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.AbstractGoodParent
          Deprecated.  
static class ExcaliburComponentManagerTestCase.AbstractKid
          Deprecated.  
static interface ExcaliburComponentManagerTestCase.Dad
          Deprecated.  
static interface ExcaliburComponentManagerTestCase.Kid
          Deprecated.  
static interface ExcaliburComponentManagerTestCase.Mom
          Deprecated.  
static class ExcaliburComponentManagerTestCase.PoolableBadCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.PoolableBadDad
          Deprecated.  
static class ExcaliburComponentManagerTestCase.PoolableBadMom
          Deprecated.  
static class ExcaliburComponentManagerTestCase.PoolableGoodCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.PoolableGoodDad
          Deprecated.  
static class ExcaliburComponentManagerTestCase.PoolableGoodMom
          Deprecated.  
static class ExcaliburComponentManagerTestCase.PoolableKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.SingleThreadedBadCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.SingleThreadedBadDad
          Deprecated.  
static class ExcaliburComponentManagerTestCase.SingleThreadedBadMom
          Deprecated.  
static class ExcaliburComponentManagerTestCase.SingleThreadedGoodCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.SingleThreadedGoodDad
          Deprecated.  
static class ExcaliburComponentManagerTestCase.SingleThreadedGoodMom
          Deprecated.  
static class ExcaliburComponentManagerTestCase.SingleThreadedKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.ThreadSafeBadCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.ThreadSafeBadDad
          Deprecated.  
static class ExcaliburComponentManagerTestCase.ThreadSafeBadMom
          Deprecated.  
static class ExcaliburComponentManagerTestCase.ThreadSafeGoodCircularKid
          Deprecated.  
static class ExcaliburComponentManagerTestCase.ThreadSafeGoodDad
          Deprecated.  
static class ExcaliburComponentManagerTestCase.ThreadSafeGoodMom
          Deprecated.  
static class ExcaliburComponentManagerTestCase.ThreadSafeKid
          Deprecated.  
 
Constructor Summary
ExcaliburComponentManagerTestCase(java.lang.String name)
          Deprecated.  
 
Method Summary
protected  void managerLifecycle(java.lang.Class momClass, java.lang.Class dadClass, java.lang.Class kidClass)
          Deprecated.  
 void setUp()
          Deprecated.  
static junit.framework.TestSuite suite()
          Deprecated. Here we create a suite lots of tests to test the interactions of various types of components.
 void tearDown()
          Deprecated.  
 
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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExcaliburComponentManagerTestCase

public ExcaliburComponentManagerTestCase(java.lang.String name)
Deprecated. 
Method Detail

suite

public static junit.framework.TestSuite suite()
Deprecated. 
Here we create a suite lots of tests to test the interactions of various types of components. Basically there are three Roles involved: Mom, Dad, and Kid. Each of the three Roles can be implemented by a SingleThreaded, ThreadSafe, or Poolable component. The Mom and Dad components both are Composable, and they use the ComponentLocator that they are provided with to obtain references to a Kid component. The Mom and Dad components may be "Good" (they properly release their Kid) or "Bad" (they don't release their Kid). Each of the tests sets up a different combo of these component implementations and checks to make sure that everything gets disposed, and that Kids never get disposed before parents are done using them.

Returns:
a TestSuite

managerLifecycle

protected void managerLifecycle(java.lang.Class momClass,
                                java.lang.Class dadClass,
                                java.lang.Class kidClass)
                         throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

setUp

public void setUp()
           throws java.lang.Exception
Deprecated. 
Throws:
java.lang.Exception

tearDown

public void tearDown()
Deprecated. 


Copyright © 1997-2007 The Apache Software Foundation. All Rights Reserved.