public class SetterInjectionComponentAdapterTestCase extends AbstractComponentAdapterTestCase
Modifier and Type | Class and Description |
---|---|
static class |
SetterInjectionComponentAdapterTestCase.A |
static class |
SetterInjectionComponentAdapterTestCase.B |
static class |
SetterInjectionComponentAdapterTestCase.C |
static class |
SetterInjectionComponentAdapterTestCase.DeadBody |
static class |
SetterInjectionComponentAdapterTestCase.Ghost |
static class |
SetterInjectionComponentAdapterTestCase.HidingPersion |
static class |
SetterInjectionComponentAdapterTestCase.MoneyPurse |
static class |
SetterInjectionComponentAdapterTestCase.WealthyPerson |
static class |
SetterInjectionComponentAdapterTestCase.Yang |
static class |
SetterInjectionComponentAdapterTestCase.Yin |
AbstractComponentAdapterTestCase.CollectingComponentAdapter, AbstractComponentAdapterTestCase.CycleDetectorComponentAdapter, AbstractComponentAdapterTestCase.NotInstantiatableComponentAdapter, AbstractComponentAdapterTestCase.RecordingLifecycleStrategy
INSTANTIATING, RESOLVING, SERIALIZABLE, VERIFYING
Constructor and Description |
---|
SetterInjectionComponentAdapterTestCase() |
Modifier and Type | Method and Description |
---|---|
protected org.picocontainer.defaults.ComponentAdapterFactory |
createDefaultComponentAdapterFactory() |
void |
FIXME_testShouldBeAbleToHandleMutualDependenciesWithSetterInjection() |
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 |
testAllUnsatisfiableDependenciesAreSignalled() |
void |
testCustomLifecycleCanBeInjected() |
void |
testHybridBeans() |
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, wrapComponentInstances
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 SetterInjectionComponentAdapterTestCase()
protected java.lang.Class getComponentAdapterType()
getComponentAdapterType
in class AbstractComponentAdapterTestCase
protected org.picocontainer.defaults.ComponentAdapterFactory createDefaultComponentAdapterFactory()
createDefaultComponentAdapterFactory
in class AbstractComponentAdapterTestCase
protected org.picocontainer.ComponentAdapter prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepDEF_verifyWithoutDependencyWorks
in class AbstractComponentAdapterTestCase
picoContainer
- container, may probably not be used.protected org.picocontainer.ComponentAdapter prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepDEF_verifyDoesNotInstantiate
in class AbstractComponentAdapterTestCase
picoContainer
- container, may probably not be used.protected org.picocontainer.ComponentAdapter prepDEF_visitable()
AbstractComponentAdapterTestCase
prepDEF_visitable
in class AbstractComponentAdapterTestCase
Parameter
, you have to
select a component, that have some.protected org.picocontainer.ComponentAdapter prepSER_isSerializable(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepSER_isSerializable
in class AbstractComponentAdapterTestCase
picoContainer
- container, may probably not be used.protected org.picocontainer.ComponentAdapter prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepSER_isXStreamSerializable
in class AbstractComponentAdapterTestCase
picoContainer
- container, may probably not be used.protected org.picocontainer.ComponentAdapter prepDEF_isAbleToTakeParameters(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
Parameter
.prepDEF_isAbleToTakeParameters
in class AbstractComponentAdapterTestCase
picoContainer
- container, may probably not be used.protected org.picocontainer.ComponentAdapter prepVER_verificationFails(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepVER_verificationFails
in class AbstractComponentAdapterTestCase
picoContainer
- container, may probably not be used.protected org.picocontainer.ComponentAdapter prepINS_createsNewInstances(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepINS_createsNewInstances
in class AbstractComponentAdapterTestCase
picoContainer
- container, may probably not be used.protected org.picocontainer.ComponentAdapter prepINS_errorIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepINS_errorIsRethrown
in class AbstractComponentAdapterTestCase
picoContainer
- 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)
AbstractComponentAdapterTestCase
prepINS_runtimeExceptionIsRethrown
in class AbstractComponentAdapterTestCase
picoContainer
- 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)
AbstractComponentAdapterTestCase
prepINS_normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException
in class AbstractComponentAdapterTestCase
picoContainer
- 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)
AbstractComponentAdapterTestCase
prepRES_dependenciesAreResolved
in class AbstractComponentAdapterTestCase
picoContainer
- container, used to register dependencies.protected org.picocontainer.ComponentAdapter prepRES_failingVerificationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepRES_failingVerificationWithCyclicDependencyException
in class AbstractComponentAdapterTestCase
picoContainer
- container, used to register dependencies.protected org.picocontainer.ComponentAdapter prepRES_failingInstantiationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepRES_failingInstantiationWithCyclicDependencyException
in class AbstractComponentAdapterTestCase
picoContainer
- container, used to register dependencies.public void testAllUnsatisfiableDependenciesAreSignalled()
public void testHybridBeans()
public void FIXME_testShouldBeAbleToHandleMutualDependenciesWithSetterInjection()
public void testCustomLifecycleCanBeInjected() throws java.lang.NoSuchMethodException
java.lang.NoSuchMethodException