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, throwException
and, 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, toString
registerToVerify, runBare, unregisterToVerify, verify
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toString
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
public DefaultPicoContainerLifecycleTestCase()
public void testOrderOfInstantiationShouldBeDependencyOrder() throws java.lang.Exception
java.lang.Exception
public void testOrderOfStartShouldBeDependencyOrderAndStopAndDisposeTheOpposite() throws java.lang.Exception
java.lang.Exception
public void testLifecycleIsIgnoredIfAdaptersAreNotLifecycleManagers()
public void testStartStartShouldFail() throws java.lang.Exception
java.lang.Exception
public void testStartStopStopShouldFail() throws java.lang.Exception
java.lang.Exception
public void testStartStopDisposeDisposeShouldFail() throws java.lang.Exception
java.lang.Exception
public void testStartStopOfDaemonizedThread() throws java.lang.Exception
java.lang.Exception
public 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.Exception
public void testLifeCycleStrategyForInstanceRegistrationPassedToChildContainers() throws java.lang.Exception
java.lang.Exception
public void testLifecycleDoesNotRecoverWithDefaultComponentMonitor()
public void testLifecycleCanRecoverWithCustomComponentMonitor() throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException
public void testLifecycleFailuresCanBePickedUpAfterTheEvent()
public void testStartedComponentsCanBeStoppedIfSomeComponentsFailToStart()
public void testStartedComponentsCanBeStoppedIfSomeComponentsFailToStartEvenInAPicoHierarchy()
public void testChildContainerIsStoppedWhenStartedIndependentlyOfParent() throws java.lang.Exception
java.lang.Exception