|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.tck.AbstractComponentAdapterTest
org.picocontainer.injectors.ConstructorInjectorTestCase
public class ConstructorInjectorTestCase
| Nested Class Summary | |
|---|---|
static class |
ConstructorInjectorTestCase.A
|
static class |
ConstructorInjectorTestCase.AllConstructorsArePrivate
|
static class |
ConstructorInjectorTestCase.B
|
static class |
ConstructorInjectorTestCase.C1
|
static class |
ConstructorInjectorTestCase.C2
|
static class |
ConstructorInjectorTestCase.Component201
|
static class |
ConstructorInjectorTestCase.Erroneous
|
static class |
ConstructorInjectorTestCase.InstantiationExceptionThrowing
|
static class |
ConstructorInjectorTestCase.NamedDependsOnTouchable
|
static class |
ConstructorInjectorTestCase.NormalExceptionThrowing
|
static class |
ConstructorInjectorTestCase.One
|
static class |
ConstructorInjectorTestCase.RuntimeThrowing
|
static class |
ConstructorInjectorTestCase.Two
|
| Nested classes/interfaces inherited from class org.picocontainer.tck.AbstractComponentAdapterTest |
|---|
AbstractComponentAdapterTest.CollectingBehavior, AbstractComponentAdapterTest.CycleDetectorBehavior, AbstractComponentAdapterTest.NotInstantiatableBehavior, AbstractComponentAdapterTest.RecordingLifecycleStrategy |
| Field Summary |
|---|
| Fields inherited from class org.picocontainer.tck.AbstractComponentAdapterTest |
|---|
INSTANTIATING, RESOLVING, SERIALIZABLE, VERIFYING |
| Constructor Summary | |
|---|---|
ConstructorInjectorTestCase()
|
|
| Method Summary | |
|---|---|
protected 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_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 |
testCustomLifecycleCanBeInjected()
|
void |
testInstantiationExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
|
void |
testMonitoringHappensBeforeAndAfterInstantiation()
|
void |
testMonitoringHappensBeforeAndOnFailOfImpossibleComponentsInstantiation()
|
void |
testNormalExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
|
void |
testPicoInitializationExceptionThrownBecauseOfFilteredConstructors()
|
void |
testRegisterAbstractShouldFail()
|
void |
testRegisterInterfaceShouldFail()
|
void |
testShouldNotConsiderNonPublicConstructors()
|
void |
testSpeedOfRememberedConstructor()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstructorInjectorTestCase()
| Method Detail |
|---|
protected Class getComponentAdapterType()
getComponentAdapterType in class AbstractComponentAdapterTestprotected org.picocontainer.ComponentAdapter prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepDEF_verifyWithoutDependencyWorks in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepDEF_verifyDoesNotInstantiate in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepDEF_visitable()
AbstractComponentAdapterTest
prepDEF_visitable in class AbstractComponentAdapterTestParameter, you have to
select a component, that have some.protected org.picocontainer.ComponentAdapter prepDEF_isAbleToTakeParameters(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestParameter.
prepDEF_isAbleToTakeParameters in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepSER_isSerializable(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepSER_isSerializable in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepSER_isXStreamSerializable in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepVER_verificationFails(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepVER_verificationFails in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepINS_createsNewInstances(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepINS_createsNewInstances in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepINS_errorIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepINS_errorIsRethrown in class AbstractComponentAdapterTestpicoContainer - 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)
AbstractComponentAdapterTest
prepINS_runtimeExceptionIsRethrown in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
RuntimeException at
instantiation. Registration in the pico is not necessary.protected org.picocontainer.ComponentAdapter prepINS_normalExceptionIsRethrownInsidePicoInitializationException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepINS_normalExceptionIsRethrownInsidePicoInitializationException in class AbstractComponentAdapterTestpicoContainer - container, may probably not be used.
PicoCompositionException at instantiation. Registration in the pico is not
necessary.protected org.picocontainer.ComponentAdapter prepRES_dependenciesAreResolved(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepRES_dependenciesAreResolved in class AbstractComponentAdapterTestpicoContainer - container, used to register dependencies.
protected org.picocontainer.ComponentAdapter prepRES_failingVerificationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepRES_failingVerificationWithCyclicDependencyException in class AbstractComponentAdapterTestpicoContainer - container, used to register dependencies.
protected org.picocontainer.ComponentAdapter prepRES_failingInstantiationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTest
prepRES_failingInstantiationWithCyclicDependencyException in class AbstractComponentAdapterTestpicoContainer - container, used to register dependencies.
public void testNormalExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
public void testInstantiationExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
public void testPicoInitializationExceptionThrownBecauseOfFilteredConstructors()
public void testRegisterInterfaceShouldFail()
throws org.picocontainer.PicoCompositionException
org.picocontainer.PicoCompositionException
public void testRegisterAbstractShouldFail()
throws org.picocontainer.PicoCompositionException
org.picocontainer.PicoCompositionExceptionpublic void testShouldNotConsiderNonPublicConstructors()
public void testMonitoringHappensBeforeAndAfterInstantiation()
throws NoSuchMethodException
NoSuchMethodException
public void testMonitoringHappensBeforeAndOnFailOfImpossibleComponentsInstantiation()
throws NoSuchMethodException
NoSuchMethodException
public void testCustomLifecycleCanBeInjected()
throws NoSuchMethodException
NoSuchMethodExceptionpublic void testSpeedOfRememberedConstructor()
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||