public final class DefaultPicoContainerTestCase extends AbstractPicoContainerTest
AbstractPicoContainerTest.ComponentA, AbstractPicoContainerTest.ComponentB, AbstractPicoContainerTest.ComponentC, AbstractPicoContainerTest.ComponentD, AbstractPicoContainerTest.ComponentE, AbstractPicoContainerTest.ComponentF, AbstractPicoContainerTest.ConstantParameterTestService, AbstractPicoContainerTest.ContainerDependency, AbstractPicoContainerTest.ConverterSample, AbstractPicoContainerTest.DerivedTouchable, AbstractPicoContainerTest.JMSService, AbstractPicoContainerTest.LifeCycleMonitoring, AbstractPicoContainerTest.ListAdder, AbstractPicoContainerTest.NeedsTouchable, AbstractPicoContainerTest.NeedsWashable, AbstractPicoContainerTest.NonGreedyClass, AbstractPicoContainerTest.PrimitiveConstructor, AbstractPicoContainerTest.RecordingStrategyVisitor, AbstractPicoContainerTest.TestBehavior, AbstractPicoContainerTest.TestLifecycleComponent
Constructor and Description |
---|
DefaultPicoContainerTestCase() |
addContainers, addDefaultComponentFactories, createPicoContainerWithDependsOnTouchableOnly, createPicoContainerWithTouchableAndDependsOnTouchable, testAcceptImplementsBreadthFirstStrategy, testAcceptIsAbortable, testAggregatedVerificationException, testAmbiguousDependencies, testAmbiguousResolution, testBasicInstantiationAndContainment, testComponentAdapterRegistrationOrderIsMaintained, testComponentInstancesFromParentsAreNotDirectlyAccessible2, testContainerCascadesDefaultLifecycle, testContainerIsSerializable, testCyclicDependencyThrowsCyclicDependencyException, testCyclicDependencyThrowsCyclicDependencyExceptionWithParentContainer, testDuplicateRegistration, testExternallyInstantiatedObjectsCanBeRegisteredAndLookedUp, testGettingComponentWithMissingDependencyFails, testIntegrationWithConverters, testLookupWithUnregisteredKeyReturnsNull, testLookupWithUnregisteredTypeReturnsNull, testMakingOfChildContainer, testMakingOfChildContainerPercolatesLifecycleManager, testNoArgConstructorToBeSelected, testNullComponentsDoNotInject, testNullConstantParameter, testNullConstantParametersDoNotInjectOnPrimitives, testNullValuesDoNotInject, testPico52, testRegisterComponentWithObjectBadType, testRegisteredComponentsExistAndAreTheCorrectTypes, testRegistersSingleInstance, testRemovalNonRegisteredComponentAdapterWorksAndReturnsNull, testSameInstanceCanBeUsedAsDifferentTypeWhenCaching, testSerializedContainerCanRetrieveImplementation, testShouldCascadeStartStopAndDisposeToChild, testShouldReturnNonMutableParent, testShouldReturnNullForComponentAdapterOfUnregisteredType, testShouldReturnNullWhenUnregistereingUnmanagedComponent, testStartStopAndDisposeCascadedtoChildren, testStartStopAndDisposeNotCascadedtoRemovedChildren, testUnsatisfiableDependenciesExceptionGivesUnsatisfiedDependencyTypes
public DefaultPicoContainerTestCase()
protected MutablePicoContainer createPicoContainer(PicoContainer parent)
createPicoContainer
in class AbstractPicoContainerTest
protected Properties[] getProperties()
getProperties
in class AbstractPicoContainerTest
public void testInstantiationWithNullComponentFactory()
public void testUpDownDependenciesCannotBeFollowed()
public void testComponentsCanBeRemovedByInstance()
public void testComponentInstancesListIsReturnedForNullType()
public void testComponentsWithCommonSupertypeWhichIsAConstructorArgumentCanBeLookedUpByConcreteType()
public void testUnambiguouSelfDependency()
public void testPicoUsedInBuilderStyle()
public void testThangCanBeInstantiatedWithArrayList()
public void testGetComponentAdaptersOfTypeNullReturnsEmptyList()
public void testDefaultPicoContainerReturnsNewInstanceForEachCallWhenUsingTransientComponentAdapter()
public void testShouldProvideInfoAboutDependingWhenAmbiguityHappens()
public void testInstantiationWithMonitorAndParent()
public void testRepresentationOfContainerTree()
public void testStartCapturedByMonitor()
public void testListComponentsOnStart()
public void testCanChangeMonitor()
public void testCanChangeMonitorOfChildContainers()
public void testChangeMonitorIsIgnoredIfNotSupportingStrategy()
public void testCanReturnCurrentMonitorFromComponentFactory()
public void testMakeChildContainer()
public void testMakeChildContainerPassesMonitorFromParentToChild()
public void testCanUseCustomLifecycleStrategyForClassRegistrations()
public void testCanUseCustomLifecycleStrategyForInstanceRegistrations()
public void testCanRegisterTwoComponentsImplementingSameInterfaceOneWithInterfaceAsKey() throws Exception
Exception
public void testCanRegisterTwoComponentsWithSameImplementionAndDifferentKey() throws Exception
Exception
public void testPicoCanDifferentiateBetweenNamedStringsThatWouldOtherwiseBeAmbiguous()
public void testPicoCanDifferentiateBetweenNamedObjectsThatWouldOtherwiseBeAmbiguous()
public void testPicoCanDifferentiateBetweenNamedIntsThatWouldOtherwiseBeAmbiguous()
public void testListComponentsInStart()
public void testMixingOfSDIandCDI()
public void testMixingOfSDIandCDIDifferently()
public void testMixingOfSDIandCDIInBuilderStyle()
public void testMixingOfSDIandCDIWithTemporaryCharacterizations()
public void testMixingOfSDIandCDIWithTemporaryCharacterizationsDifferently()
public void testChainingOfTemporaryCharacterizationsIsNotAllowed()
public void testNoComponentIsMonitoredAndPotentiallyLateProvided()
public void testThatComponentCannotBeRemovedFromStartedContainer()
public void testThatSimpleStringComponentIsAddedOnlyOnce()
public void testConstantParameterReferenceClass()
public void canInterceptImplementationViaNewInjectionFactoryMethodOnMonitor()
public void testUnsatisfiableDependenciesExceptionGivesVerboseEnoughErrorMessage()
Copyright © 2003–2015 Codehaus. All rights reserved.