org.picocontainer
Class DefaultPicoContainerTestCase
java.lang.Object
org.picocontainer.tck.AbstractPicoContainerTest
org.picocontainer.DefaultPicoContainerTestCase
public final class DefaultPicoContainerTestCase
- extends AbstractPicoContainerTest
- Author:
- Aslak Hellesøp;y, Paul Hammant, Ward Cunningham, Mauro Talevi
Nested classes/interfaces inherited from class org.picocontainer.tck.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 |
Methods inherited from class org.picocontainer.tck.AbstractPicoContainerTest |
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, testUnsatisfiableDependenciesExceptionGivesVerboseEnoughErrorMessage |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPicoContainerTestCase
public DefaultPicoContainerTestCase()
createPicoContainer
protected MutablePicoContainer createPicoContainer(PicoContainer parent)
- Specified by:
createPicoContainer
in class AbstractPicoContainerTest
getProperties
protected Properties[] getProperties()
- Specified by:
getProperties
in class AbstractPicoContainerTest
testInstantiationWithNullComponentFactory
public void testInstantiationWithNullComponentFactory()
testUpDownDependenciesCannotBeFollowed
public void testUpDownDependenciesCannotBeFollowed()
testComponentsCanBeRemovedByInstance
public void testComponentsCanBeRemovedByInstance()
testComponentInstancesListIsReturnedForNullType
public void testComponentInstancesListIsReturnedForNullType()
testComponentsWithCommonSupertypeWhichIsAConstructorArgumentCanBeLookedUpByConcreteType
public void testComponentsWithCommonSupertypeWhichIsAConstructorArgumentCanBeLookedUpByConcreteType()
testUnambiguouSelfDependency
public void testUnambiguouSelfDependency()
testPicoUsedInBuilderStyle
public void testPicoUsedInBuilderStyle()
testThangCanBeInstantiatedWithArrayList
public void testThangCanBeInstantiatedWithArrayList()
testGetComponentAdaptersOfTypeNullReturnsEmptyList
public void testGetComponentAdaptersOfTypeNullReturnsEmptyList()
testDefaultPicoContainerReturnsNewInstanceForEachCallWhenUsingTransientComponentAdapter
public void testDefaultPicoContainerReturnsNewInstanceForEachCallWhenUsingTransientComponentAdapter()
testShouldProvideInfoAboutDependingWhenAmbiguityHappens
public void testShouldProvideInfoAboutDependingWhenAmbiguityHappens()
testInstantiationWithMonitorAndParent
public void testInstantiationWithMonitorAndParent()
testRepresentationOfContainerTree
public void testRepresentationOfContainerTree()
testStartCapturedByMonitor
public void testStartCapturedByMonitor()
testListComponentsOnStart
public void testListComponentsOnStart()
testCanChangeMonitor
public void testCanChangeMonitor()
testCanChangeMonitorOfChildContainers
public void testCanChangeMonitorOfChildContainers()
testChangeMonitorIsIgnoredIfNotSupportingStrategy
public void testChangeMonitorIsIgnoredIfNotSupportingStrategy()
testCanReturnCurrentMonitorFromComponentFactory
public void testCanReturnCurrentMonitorFromComponentFactory()
testMakeChildContainer
public void testMakeChildContainer()
testMakeChildContainerPassesMonitorFromParentToChild
public void testMakeChildContainerPassesMonitorFromParentToChild()
testCanUseCustomLifecycleStrategyForClassRegistrations
public void testCanUseCustomLifecycleStrategyForClassRegistrations()
testCanUseCustomLifecycleStrategyForInstanceRegistrations
public void testCanUseCustomLifecycleStrategyForInstanceRegistrations()
testCanRegisterTwoComponentsImplementingSameInterfaceOneWithInterfaceAsKey
public void testCanRegisterTwoComponentsImplementingSameInterfaceOneWithInterfaceAsKey()
throws Exception
- Throws:
Exception
testCanRegisterTwoComponentsWithSameImplementionAndDifferentKey
public void testCanRegisterTwoComponentsWithSameImplementionAndDifferentKey()
throws Exception
- Throws:
Exception
testPicoCanDifferentiateBetweenNamedStringsThatWouldOtherwiseBeAmbiguous
public void testPicoCanDifferentiateBetweenNamedStringsThatWouldOtherwiseBeAmbiguous()
testPicoCanDifferentiateBetweenNamedObjectsThatWouldOtherwiseBeAmbiguous
public void testPicoCanDifferentiateBetweenNamedObjectsThatWouldOtherwiseBeAmbiguous()
testPicoCanDifferentiateBetweenNamedIntsThatWouldOtherwiseBeAmbiguous
public void testPicoCanDifferentiateBetweenNamedIntsThatWouldOtherwiseBeAmbiguous()
testListComponentsInStart
public void testListComponentsInStart()
- JIRA: PICO-295 reported by Erik Putrycz
testMixingOfSDIandCDI
public void testMixingOfSDIandCDI()
testMixingOfSDIandCDIDifferently
public void testMixingOfSDIandCDIDifferently()
testMixingOfSDIandCDIInBuilderStyle
public void testMixingOfSDIandCDIInBuilderStyle()
testMixingOfSDIandCDIWithTemporaryCharacterizations
public void testMixingOfSDIandCDIWithTemporaryCharacterizations()
testMixingOfSDIandCDIWithTemporaryCharacterizationsDifferently
public void testMixingOfSDIandCDIWithTemporaryCharacterizationsDifferently()
testChainingOfTemporaryCharacterizationsIsNotAllowed
public void testChainingOfTemporaryCharacterizationsIsNotAllowed()
testNoComponentIsMonitoredAndPotentiallyLateProvided
public void testNoComponentIsMonitoredAndPotentiallyLateProvided()
testThatComponentCannotBeRemovedFromStartedContainer
public void testThatComponentCannotBeRemovedFromStartedContainer()
testThatSimpleStringComponentIsAddedOnlyOnce
public void testThatSimpleStringComponentIsAddedOnlyOnce()
testConstantParameterReferenceClass
public void testConstantParameterReferenceClass()
canInterceptImplementationViaNewInjectionFactoryMethodOnMonitor
public void canInterceptImplementationViaNewInjectionFactoryMethodOnMonitor()
Copyright © 2003-2010 Codehaus. All Rights Reserved.