org.picocontainer.tck
Class AbstractPicoContainerTest
java.lang.Object
org.picocontainer.tck.AbstractPicoContainerTest
- Direct Known Subclasses:
- AbstractImplementationHidingPicoContainerTest, DefaultClassLoadingPicoContainerTestCase, DefaultPicoContainerTestCase, DefaultPicoContainerTreeSerializationTestCase, DelegatingMutablePicoContainerTestCase
public abstract class AbstractPicoContainerTest
- extends Object
This test tests (at least it should) all the methods in MutablePicoContainer.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPicoContainerTest
public AbstractPicoContainerTest()
createPicoContainer
protected abstract MutablePicoContainer createPicoContainer(PicoContainer parent)
createPicoContainerWithDependsOnTouchableOnly
protected final MutablePicoContainer createPicoContainerWithDependsOnTouchableOnly()
throws PicoCompositionException
- Throws:
PicoCompositionException
createPicoContainerWithTouchableAndDependsOnTouchable
protected final MutablePicoContainer createPicoContainerWithTouchableAndDependsOnTouchable()
throws PicoCompositionException
- Throws:
PicoCompositionException
testBasicInstantiationAndContainment
public void testBasicInstantiationAndContainment()
throws PicoException
- Throws:
PicoException
testRegisteredComponentsExistAndAreTheCorrectTypes
public void testRegisteredComponentsExistAndAreTheCorrectTypes()
throws PicoException
- Throws:
PicoException
testRegistersSingleInstance
public void testRegistersSingleInstance()
throws PicoException
- Throws:
PicoException
testContainerIsSerializable
public void testContainerIsSerializable()
throws PicoException,
IOException,
ClassNotFoundException
- Throws:
PicoException
IOException
ClassNotFoundException
testSerializedContainerCanRetrieveImplementation
public void testSerializedContainerCanRetrieveImplementation()
throws PicoException,
IOException,
ClassNotFoundException
- Throws:
PicoException
IOException
ClassNotFoundException
testGettingComponentWithMissingDependencyFails
public void testGettingComponentWithMissingDependencyFails()
throws PicoException
- Throws:
PicoException
testDuplicateRegistration
public void testDuplicateRegistration()
testExternallyInstantiatedObjectsCanBeRegisteredAndLookedUp
public void testExternallyInstantiatedObjectsCanBeRegisteredAndLookedUp()
throws PicoException
- Throws:
PicoException
testAmbiguousResolution
public void testAmbiguousResolution()
throws PicoCompositionException
- Throws:
PicoCompositionException
testLookupWithUnregisteredKeyReturnsNull
public void testLookupWithUnregisteredKeyReturnsNull()
throws PicoCompositionException
- Throws:
PicoCompositionException
testLookupWithUnregisteredTypeReturnsNull
public void testLookupWithUnregisteredTypeReturnsNull()
throws PicoCompositionException
- Throws:
PicoCompositionException
testUnsatisfiableDependenciesExceptionGivesVerboseEnoughErrorMessage
public void testUnsatisfiableDependenciesExceptionGivesVerboseEnoughErrorMessage()
testUnsatisfiableDependenciesExceptionGivesUnsatisfiedDependencyTypes
public void testUnsatisfiableDependenciesExceptionGivesUnsatisfiedDependencyTypes()
testCyclicDependencyThrowsCyclicDependencyException
public void testCyclicDependencyThrowsCyclicDependencyException()
testCyclicDependencyThrowsCyclicDependencyExceptionWithParentContainer
public void testCyclicDependencyThrowsCyclicDependencyExceptionWithParentContainer()
testRemovalNonRegisteredComponentAdapterWorksAndReturnsNull
public void testRemovalNonRegisteredComponentAdapterWorksAndReturnsNull()
testComponentAdapterRegistrationOrderIsMaintained
public void testComponentAdapterRegistrationOrderIsMaintained()
throws NoSuchMethodException
- Important! Nanning really, really depends on this!
- Throws:
NoSuchMethodException
testSameInstanceCanBeUsedAsDifferentTypeWhenCaching
public void testSameInstanceCanBeUsedAsDifferentTypeWhenCaching()
testRegisterComponentWithObjectBadType
public void testRegisterComponentWithObjectBadType()
throws PicoCompositionException
- Throws:
PicoCompositionException
testPico52
public void testPico52()
testAggregatedVerificationException
public void testAggregatedVerificationException()
testShouldReturnNullWhenUnregistereingUnmanagedComponent
public void testShouldReturnNullWhenUnregistereingUnmanagedComponent()
testShouldReturnNullForComponentAdapterOfUnregisteredType
public void testShouldReturnNullForComponentAdapterOfUnregisteredType()
testShouldReturnNonMutableParent
public void testShouldReturnNonMutableParent()
testContainerCascadesDefaultLifecycle
public void testContainerCascadesDefaultLifecycle()
testComponentInstancesFromParentsAreNotDirectlyAccessible2
public void testComponentInstancesFromParentsAreNotDirectlyAccessible2()
testStartStopAndDisposeCascadedtoChildren
public void testStartStopAndDisposeCascadedtoChildren()
testMakingOfChildContainer
public void testMakingOfChildContainer()
testMakingOfChildContainerPercolatesLifecycleManager
public void testMakingOfChildContainerPercolatesLifecycleManager()
testStartStopAndDisposeNotCascadedtoRemovedChildren
public void testStartStopAndDisposeNotCascadedtoRemovedChildren()
testShouldCascadeStartStopAndDisposeToChild
public void testShouldCascadeStartStopAndDisposeToChild()
getProperties
protected abstract Properties[] getProperties()
testAcceptImplementsBreadthFirstStrategy
public void testAcceptImplementsBreadthFirstStrategy()
testAcceptIsAbortable
public void testAcceptIsAbortable()
- Verifies that you can halt a container traversal.
addContainers
protected void addContainers(List expectedList)
addDefaultComponentFactories
protected void addDefaultComponentFactories(List expectedList)
testAmbiguousDependencies
public void testAmbiguousDependencies()
throws PicoCompositionException
- Throws:
PicoCompositionException
testNoArgConstructorToBeSelected
public void testNoArgConstructorToBeSelected()
Copyright © 2003-2010 Codehaus. All Rights Reserved.