public class DefaultPicoContainerLifecycleTestCase
extends org.jmock.MockObjectTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultPicoContainerLifecycleTestCase.FooRunnable |
static class |
DefaultPicoContainerLifecycleTestCase.NotStartable |
| Constructor and Description |
|---|
DefaultPicoContainerLifecycleTestCase() |
atLeastOnce, atMostOnce, defaultMockNameForType, doAll, doAll, doAll, doAll, exactly, mock, mock, never, never, newCoreMock, newDummy, newDummy, newDummy, once, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, onConsecutiveCalls, returnIterator, returnIterator, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, returnValue, throwExceptionand, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, arrayContaining, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, assertThat, collectionContaining, collectionContaining, compatibleType, contains, endsWith, eq, eq, eq, eq, eq, eq, eq, eq, eq, eq, hasProperty, hasProperty, isA, isIn, isIn, mapContaining, mapContaining, mapWithKey, mapWithKey, mapWithValue, mapWithValue, not, or, same, startsWith, stringContains, toStringregisterToVerify, runBare, unregisterToVerify, verifycountTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toStringassertEquals, 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, failSamepublic DefaultPicoContainerLifecycleTestCase()
public void testOrderOfInstantiationShouldBeDependencyOrder()
throws java.lang.Exception
java.lang.Exceptionpublic void testOrderOfStartShouldBeDependencyOrderAndStopAndDisposeTheOpposite()
throws java.lang.Exception
java.lang.Exceptionpublic void testLifecycleIsIgnoredIfAdaptersAreNotLifecycleManagers()
public void testStartStartShouldFail()
throws java.lang.Exception
java.lang.Exceptionpublic void testStartStopStopShouldFail()
throws java.lang.Exception
java.lang.Exceptionpublic void testStartStopDisposeDisposeShouldFail()
throws java.lang.Exception
java.lang.Exceptionpublic void testStartStopOfDaemonizedThread()
throws java.lang.Exception
java.lang.Exceptionpublic void testGetComponentInstancesOnParentContainerHostedChildContainerDoesntReturnParentAdapter()
public void testComponentsAreStartedBreadthFirstAndStoppedAndDisposedDepthFirst()
public void testMaliciousComponentCannotExistInAChildContainerAndSeeAnyElementOfContainerHierarchy()
public void testOnlyStartableComponentsAreStartedOnStart()
public void testShouldFailOnStartAfterDispose()
public void testShouldFailOnStopAfterDispose()
public void testShouldStackContainersLast()
public void testCanSpecifyLifeCycleStrategyForInstanceRegistrationWhenSpecifyingComponentAdapterFactory()
throws java.lang.Exception
java.lang.Exceptionpublic void testLifeCycleStrategyForInstanceRegistrationPassedToChildContainers()
throws java.lang.Exception
java.lang.Exceptionpublic void testLifecycleDoesNotRecoverWithDefaultComponentMonitor()
public void testLifecycleCanRecoverWithCustomComponentMonitor()
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodExceptionpublic void testLifecycleFailuresCanBePickedUpAfterTheEvent()
public void testStartedComponentsCanBeStoppedIfSomeComponentsFailToStart()
public void testStartedComponentsCanBeStoppedIfSomeComponentsFailToStartEvenInAPicoHierarchy()
public void testChildContainerIsStoppedWhenStartedIndependentlyOfParent()
throws java.lang.Exception
java.lang.Exception