|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.tck.AbstractComponentAdapterTest
public abstract class AbstractComponentAdapterTest
Test suite for a ComponentAdapter implementation.
| Nested Class Summary | |
|---|---|
static class |
AbstractComponentAdapterTest.CollectingBehavior
|
static class |
AbstractComponentAdapterTest.CycleDetectorBehavior
|
static class |
AbstractComponentAdapterTest.NotInstantiatableBehavior
|
static class |
AbstractComponentAdapterTest.RecordingLifecycleStrategy
|
| Field Summary | |
|---|---|
static int |
INSTANTIATING
|
static int |
RESOLVING
|
static int |
SERIALIZABLE
|
static int |
VERIFYING
|
| Constructor Summary | |
|---|---|
AbstractComponentAdapterTest()
|
|
| Method Summary | |
|---|---|
protected org.picocontainer.ComponentFactory |
createDefaultComponentFactory()
|
protected int |
getComponentAdapterNature()
|
protected abstract Class |
getComponentAdapterType()
|
protected org.picocontainer.ComponentAdapter |
prepDEF_isAbleToTakeParameters(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test isAbleToTakeParameters. |
protected abstract org.picocontainer.ComponentAdapter |
prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test verifyDoesNotInstantiate. |
protected abstract org.picocontainer.ComponentAdapter |
prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
Prepare the test verifyWithoutDependencyWorks. |
protected abstract 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_normalExceptionIsRethrownInsidePicoInitializationException(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 |
testDEF_isAbleToTakeParameters()
|
void |
testDEF_verifyDoesNotInstantiate()
|
void |
testDEF_verifyWithoutDependencyWorks()
|
void |
testDEF_visitable()
|
void |
testINS_createsNewInstances()
|
void |
testINS_errorIsRethrown()
|
void |
testINS_normalExceptionIsRethrownInsidePicoInitializationException()
|
void |
testINS_runtimeExceptionIsRethrown()
|
void |
testRES_dependenciesAreResolved()
|
void |
testRES_failingInstantiationWithCyclicDependencyException()
|
void |
testRES_failingVerificationWithCyclicDependencyException()
|
void |
testSER_isSerializable()
|
void |
testSER_isXStreamSerializable()
|
void |
testSER_isXStreamSerializableWithPureReflection()
|
void |
testVER_verificationFails()
|
protected org.picocontainer.PicoContainer |
wrapComponentInstances(Class decoratingComponentAdapterClass,
org.picocontainer.PicoContainer picoContainer,
Object[] wrapperDependencies)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SERIALIZABLE
public static final int VERIFYING
public static final int INSTANTIATING
public static final int RESOLVING
| Constructor Detail |
|---|
public AbstractComponentAdapterTest()
| Method Detail |
|---|
protected abstract Class getComponentAdapterType()
protected int getComponentAdapterNature()
protected org.picocontainer.ComponentFactory createDefaultComponentFactory()
protected abstract org.picocontainer.ComponentAdapter prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
public final void testDEF_verifyWithoutDependencyWorks()
protected abstract org.picocontainer.ComponentAdapter prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
public final void testDEF_verifyDoesNotInstantiate()
protected abstract org.picocontainer.ComponentAdapter prepDEF_visitable()
Parameter, you have to
select a component, that have some.public final void testDEF_visitable()
protected org.picocontainer.ComponentAdapter prepDEF_isAbleToTakeParameters(org.picocontainer.MutablePicoContainer picoContainer)
Parameter.
picoContainer - container, may probably not be used.
public final void testDEF_isAbleToTakeParameters()
protected org.picocontainer.ComponentAdapter prepSER_isSerializable(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
public final void testSER_isSerializable()
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundExceptionprotected org.picocontainer.ComponentAdapter prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
public final void testSER_isXStreamSerializableWithPureReflection()
public final void testSER_isXStreamSerializable()
protected org.picocontainer.ComponentAdapter prepVER_verificationFails(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
public final void testVER_verificationFails()
protected org.picocontainer.ComponentAdapter prepINS_createsNewInstances(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
public final void testINS_createsNewInstances()
protected org.picocontainer.ComponentAdapter prepINS_errorIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
Error at
instantiation. Registration in the pico is not necessary.public final void testINS_errorIsRethrown()
protected org.picocontainer.ComponentAdapter prepINS_runtimeExceptionIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
RuntimeException at
instantiation. Registration in the pico is not necessary.public final void testINS_runtimeExceptionIsRethrown()
protected org.picocontainer.ComponentAdapter prepINS_normalExceptionIsRethrownInsidePicoInitializationException(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, may probably not be used.
PicoCompositionException at instantiation. Registration in the pico is not
necessary.public final void testINS_normalExceptionIsRethrownInsidePicoInitializationException()
protected org.picocontainer.ComponentAdapter prepRES_dependenciesAreResolved(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, used to register dependencies.
public final void testRES_dependenciesAreResolved()
protected org.picocontainer.ComponentAdapter prepRES_failingVerificationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, used to register dependencies.
public final void testRES_failingVerificationWithCyclicDependencyException()
protected org.picocontainer.ComponentAdapter prepRES_failingInstantiationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
picoContainer - container, used to register dependencies.
public final void testRES_failingInstantiationWithCyclicDependencyException()
protected final org.picocontainer.PicoContainer wrapComponentInstances(Class decoratingComponentAdapterClass,
org.picocontainer.PicoContainer picoContainer,
Object[] wrapperDependencies)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||