public class ConstructorInjectionComponentAdapterTestCase extends AbstractComponentAdapterTestCase
AbstractComponentAdapterTestCase.CollectingComponentAdapter, AbstractComponentAdapterTestCase.CycleDetectorComponentAdapter, AbstractComponentAdapterTestCase.NotInstantiatableComponentAdapter, AbstractComponentAdapterTestCase.RecordingLifecycleStrategyINSTANTIATING, RESOLVING, SERIALIZABLE, VERIFYING| Constructor and Description |
|---|
ConstructorInjectionComponentAdapterTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Class |
getComponentAdapterType() |
protected org.picocontainer.ComponentAdapter |
prepDEF_isAbleToTakeParameters(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test isAbleToTakeParameters.
|
protected org.picocontainer.ComponentAdapter |
prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test verifyDoesNotInstantiate.
|
protected org.picocontainer.ComponentAdapter |
prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test verifyWithoutDependencyWorks.
|
protected org.picocontainer.ComponentAdapter |
prepDEF_visitable()
Prepare the test visitable.
|
protected org.picocontainer.ComponentAdapter |
prepINS_createsNewInstances(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test createsNewInstances.
|
protected org.picocontainer.ComponentAdapter |
prepINS_errorIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test errorIsRethrown.
|
protected org.picocontainer.ComponentAdapter |
prepINS_normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException.
|
protected org.picocontainer.ComponentAdapter |
prepINS_runtimeExceptionIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test runtimeExceptionIsRethrown.
|
protected org.picocontainer.ComponentAdapter |
prepRES_dependenciesAreResolved(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test dependenciesAreResolved.
|
protected org.picocontainer.ComponentAdapter |
prepRES_failingInstantiationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test failingInstantiationWithCyclicDependencyException.
|
protected org.picocontainer.ComponentAdapter |
prepRES_failingVerificationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test failingVerificationWithCyclicDependencyException.
|
protected org.picocontainer.ComponentAdapter |
prepSER_isSerializable(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test isSerializable.
|
protected org.picocontainer.ComponentAdapter |
prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test isXStreamSerializable.
|
protected org.picocontainer.ComponentAdapter |
prepVER_verificationFails(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test verificationFailsWithUnsatisfiedDependency.
|
void |
testCustomLifecycleCanBeInjected() |
void |
testInstantiationExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption() |
void |
testMonitoringHappensBeforeAndAfterInstantiation() |
void |
testMonitoringHappensBeforeAndOnFailOfImpossibleComponentsInstantiation() |
void |
testNormalExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption() |
void |
testPicoInitializationExceptionThrownBecauseOfFilteredConstructors() |
void |
testRegisterAbstractShouldFail() |
void |
testShouldBeAbleToInstantiateNonPublicClassesWithNonPublicConstructors() |
void |
testShouldNotConsiderNonPublicConstructors() |
void |
XXXtestIllegalAccessExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption() |
createDefaultComponentAdapterFactory, getComponentAdapterNature, testDEF_isAbleToTakeParameters, testDEF_verifyDoesNotInstantiate, testDEF_verifyWithoutDependencyWorks, testDEF_visitable, testINS_createsNewInstances, testINS_errorIsRethrown, testINS_normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException, testINS_runtimeExceptionIsRethrown, testRES_dependenciesAreResolved, testRES_failingInstantiationWithCyclicDependencyException, testRES_failingVerificationWithCyclicDependencyException, testSER_isSerializable, testSER_isXStreamSerializable, testSER_isXStreamSerializableWithPureReflection, testVER_verificationFails, wrapComponentInstancesatLeastOnce, 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 ConstructorInjectionComponentAdapterTestCase()
protected java.lang.Class getComponentAdapterType()
getComponentAdapterType in class AbstractComponentAdapterTestCaseprotected org.picocontainer.ComponentAdapter prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepDEF_verifyWithoutDependencyWorks in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.protected org.picocontainer.ComponentAdapter prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepDEF_verifyDoesNotInstantiate in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.protected org.picocontainer.ComponentAdapter prepDEF_visitable()
AbstractComponentAdapterTestCaseprepDEF_visitable in class AbstractComponentAdapterTestCaseParameter, you have to
select a component, that have some.protected org.picocontainer.ComponentAdapter prepDEF_isAbleToTakeParameters(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseParameter.prepDEF_isAbleToTakeParameters in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.protected org.picocontainer.ComponentAdapter prepSER_isSerializable(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepSER_isSerializable in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.protected org.picocontainer.ComponentAdapter prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepSER_isXStreamSerializable in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.protected org.picocontainer.ComponentAdapter prepVER_verificationFails(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepVER_verificationFails in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.protected org.picocontainer.ComponentAdapter prepINS_createsNewInstances(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepINS_createsNewInstances in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.protected org.picocontainer.ComponentAdapter prepINS_errorIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepINS_errorIsRethrown in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.Error at
instantiation. Registration in the pico is not necessary.protected org.picocontainer.ComponentAdapter prepINS_runtimeExceptionIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepINS_runtimeExceptionIsRethrown in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.RuntimeException at
instantiation. Registration in the pico is not necessary.protected org.picocontainer.ComponentAdapter prepINS_normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepINS_normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.PicoInvocationTargetInitializationException at instantiation. Registration in the pico is not
necessary.protected org.picocontainer.ComponentAdapter prepRES_dependenciesAreResolved(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepRES_dependenciesAreResolved in class AbstractComponentAdapterTestCasepicoContainer - container, used to register dependencies.protected org.picocontainer.ComponentAdapter prepRES_failingVerificationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepRES_failingVerificationWithCyclicDependencyException in class AbstractComponentAdapterTestCasepicoContainer - container, used to register dependencies.protected org.picocontainer.ComponentAdapter prepRES_failingInstantiationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCaseprepRES_failingInstantiationWithCyclicDependencyException in class AbstractComponentAdapterTestCasepicoContainer - container, used to register dependencies.public void testNormalExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
public void testInstantiationExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
public void XXXtestIllegalAccessExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
public void testPicoInitializationExceptionThrownBecauseOfFilteredConstructors()
public void testRegisterAbstractShouldFail()
throws org.picocontainer.PicoRegistrationException,
org.picocontainer.PicoIntrospectionException
org.picocontainer.PicoRegistrationExceptionorg.picocontainer.PicoIntrospectionExceptionpublic void testShouldBeAbleToInstantiateNonPublicClassesWithNonPublicConstructors()
public void testShouldNotConsiderNonPublicConstructors()
public void testMonitoringHappensBeforeAndAfterInstantiation()
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodExceptionpublic void testMonitoringHappensBeforeAndOnFailOfImpossibleComponentsInstantiation()
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodExceptionpublic void testCustomLifecycleCanBeInjected()
throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException