org.picocontainer.defaults
Class DefaultPicoContainerLifecycleTestCase
java.lang.Object
org.picocontainer.defaults.DefaultPicoContainerLifecycleTestCase
public class DefaultPicoContainerLifecycleTestCase
- extends java.lang.Object
This class tests the lifecycle aspects of DefaultPicoContainer.
- Author:
- Aslak Hellesøy, Paul Hammant, Ward Cunningham, Mauro Talevi
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPicoContainerLifecycleTestCase
public DefaultPicoContainerLifecycleTestCase()
testOrderOfInstantiationShouldBeDependencyOrder
public void testOrderOfInstantiationShouldBeDependencyOrder()
throws java.lang.Exception
- Throws:
java.lang.Exception
testOrderOfStartShouldBeDependencyOrderAndStopAndDisposeTheOpposite
public void testOrderOfStartShouldBeDependencyOrderAndStopAndDisposeTheOpposite()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLifecycleIsIgnoredIfAdaptersAreNotLifecycleManagers
public void testLifecycleIsIgnoredIfAdaptersAreNotLifecycleManagers()
testStartStartShouldFail
public void testStartStartShouldFail()
throws java.lang.Exception
- Throws:
java.lang.Exception
testStartStopStopShouldFail
public void testStartStopStopShouldFail()
throws java.lang.Exception
- Throws:
java.lang.Exception
testStartStopDisposeDisposeShouldFail
public void testStartStopDisposeDisposeShouldFail()
throws java.lang.Exception
- Throws:
java.lang.Exception
testStartStopOfDaemonizedThread
public void testStartStopOfDaemonizedThread()
throws java.lang.Exception
- Throws:
java.lang.Exception
testGetComponentInstancesOnParentContainerHostedChildContainerDoesntReturnParentAdapter
public void testGetComponentInstancesOnParentContainerHostedChildContainerDoesntReturnParentAdapter()
testComponentsAreStartedBreadthFirstAndStoppedAndDisposedDepthFirst
public void testComponentsAreStartedBreadthFirstAndStoppedAndDisposedDepthFirst()
testMaliciousComponentCannotExistInAChildContainerAndSeeAnyElementOfContainerHierarchy
public void testMaliciousComponentCannotExistInAChildContainerAndSeeAnyElementOfContainerHierarchy()
testOnlyStartableComponentsAreStartedOnStart
public void testOnlyStartableComponentsAreStartedOnStart()
testShouldFailOnStartAfterDispose
public void testShouldFailOnStartAfterDispose()
testShouldFailOnStopAfterDispose
public void testShouldFailOnStopAfterDispose()
testShouldStackContainersLast
public void testShouldStackContainersLast()
testCanSpecifyLifeCycleStrategyForInstanceRegistrationWhenSpecifyingComponentFactory
public void testCanSpecifyLifeCycleStrategyForInstanceRegistrationWhenSpecifyingComponentFactory()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLifeCycleStrategyForInstanceRegistrationPassedToChildContainers
public void testLifeCycleStrategyForInstanceRegistrationPassedToChildContainers()
throws java.lang.Exception
- Throws:
java.lang.Exception
testLifecycleDoesNotRecoverWithNullComponentMonitor
public void testLifecycleDoesNotRecoverWithNullComponentMonitor()
testLifecycleCanRecoverWithCustomComponentMonitor
public void testLifecycleCanRecoverWithCustomComponentMonitor()
throws java.lang.NoSuchMethodException
- Throws:
java.lang.NoSuchMethodException
testLifecycleFailuresCanBePickedUpAfterTheEvent
public void testLifecycleFailuresCanBePickedUpAfterTheEvent()
testStartedComponentsCanBeStoppedIfSomeComponentsFailToStart
public void testStartedComponentsCanBeStoppedIfSomeComponentsFailToStart()
testStartedComponentsCanBeStoppedIfSomeComponentsFailToStartEvenInAPicoHierarchy
public void testStartedComponentsCanBeStoppedIfSomeComponentsFailToStartEvenInAPicoHierarchy()
testChildContainerIsStoppedWhenStartedIndependentlyOfParent
public void testChildContainerIsStoppedWhenStartedIndependentlyOfParent()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2003-2011 Codehaus. All Rights Reserved.