public class InstanceComponentAdapterTestCase extends AbstractComponentAdapterTestCase
| Modifier and Type | Class and Description |
|---|---|
private static class |
InstanceComponentAdapterTestCase.LifecycleComponent |
AbstractComponentAdapterTestCase.CollectingComponentAdapter, AbstractComponentAdapterTestCase.CycleDetectorComponentAdapter, AbstractComponentAdapterTestCase.NotInstantiatableComponentAdapter, AbstractComponentAdapterTestCase.RecordingLifecycleStrategyINSTANTIATING, RESOLVING, SERIALIZABLE, VERIFYING| Constructor and Description |
|---|
InstanceComponentAdapterTestCase() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getComponentAdapterNature() |
protected java.lang.Class |
getComponentAdapterType() |
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 |
prepSER_isSerializable(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test isSerializable.
|
protected org.picocontainer.ComponentAdapter |
prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test isXStreamSerializable.
|
void |
testComponentAdapterCanIgnoreLifecycle() |
void |
testComponentAdapterReturnsSame() |
void |
testCustomLifecycleCanBeInjected() |
void |
testDefaultLifecycleStrategy() |
void |
testGuardAgainstNullInstance() |
createDefaultComponentAdapterFactory, prepDEF_isAbleToTakeParameters, prepINS_createsNewInstances, prepINS_errorIsRethrown, prepINS_normalExceptionIsRethrownInsidePicoInvocationTargetInitializationException, prepINS_runtimeExceptionIsRethrown, prepRES_dependenciesAreResolved, prepRES_failingInstantiationWithCyclicDependencyException, prepRES_failingVerificationWithCyclicDependencyException, prepVER_verificationFails, 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 void testComponentAdapterReturnsSame()
public void testDefaultLifecycleStrategy()
public void testCustomLifecycleCanBeInjected()
public void testComponentAdapterCanIgnoreLifecycle()
public void testGuardAgainstNullInstance()
protected java.lang.Class getComponentAdapterType()
getComponentAdapterType in class AbstractComponentAdapterTestCaseAbstractComponentAdapterTestCase.getComponentAdapterType()protected int getComponentAdapterNature()
getComponentAdapterNature in class AbstractComponentAdapterTestCaseAbstractComponentAdapterTestCase.getComponentAdapterNature()protected org.picocontainer.ComponentAdapter prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
prepDEF_verifyWithoutDependencyWorks in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.AbstractComponentAdapterTestCase.prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer)protected org.picocontainer.ComponentAdapter prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
prepDEF_verifyDoesNotInstantiate in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.AbstractComponentAdapterTestCase.prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer)protected org.picocontainer.ComponentAdapter prepDEF_visitable()
prepDEF_visitable in class AbstractComponentAdapterTestCaseParameter, you have to
select a component, that have some.AbstractComponentAdapterTestCase.prepDEF_visitable()protected org.picocontainer.ComponentAdapter prepSER_isSerializable(org.picocontainer.MutablePicoContainer picoContainer)
prepSER_isSerializable in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.AbstractComponentAdapterTestCase.prepSER_isSerializable(org.picocontainer.MutablePicoContainer)protected org.picocontainer.ComponentAdapter prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
prepSER_isXStreamSerializable in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.AbstractComponentAdapterTestCase.prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer)