|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jmock.core.VerifyingTestCase
org.jmock.core.MockObjectSupportTestCase
org.jmock.MockObjectTestCase
org.picocontainer.tck.AbstractComponentAdapterTestCase
org.picocontainer.injectors.ConstructorInjectorTestCase
public class ConstructorInjectorTestCase
| Nested Class Summary | |
|---|---|
static class |
ConstructorInjectorTestCase.A
|
static class |
ConstructorInjectorTestCase.B
|
static class |
ConstructorInjectorTestCase.C1
|
static class |
ConstructorInjectorTestCase.C2
|
static class |
ConstructorInjectorTestCase.Component201
|
static class |
ConstructorInjectorTestCase.Erroneous
|
class |
ConstructorInjectorTestCase.IllegalAccessExceptionThrowing
|
static class |
ConstructorInjectorTestCase.InstantiationExceptionThrowing
|
static class |
ConstructorInjectorTestCase.NamedDependsOnTouchable
|
static class |
ConstructorInjectorTestCase.NormalExceptionThrowing
|
static class |
ConstructorInjectorTestCase.RuntimeThrowing
|
| Nested classes/interfaces inherited from class org.picocontainer.tck.AbstractComponentAdapterTestCase |
|---|
AbstractComponentAdapterTestCase.CollectingBehavior, AbstractComponentAdapterTestCase.CycleDetectorBehavior, AbstractComponentAdapterTestCase.NotInstantiatableBehavior, AbstractComponentAdapterTestCase.RecordingLifecycleStrategy |
| Field Summary |
|---|
| Fields inherited from class org.picocontainer.tck.AbstractComponentAdapterTestCase |
|---|
INSTANTIATING, RESOLVING, SERIALIZABLE, VERIFYING |
| Fields inherited from class org.jmock.core.MockObjectSupportTestCase |
|---|
ANYTHING, NOT_NULL, NULL |
| 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 |
XXXtestIllegalAccessExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
|
| Methods inherited from class org.jmock.MockObjectTestCase |
|---|
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 |
| Methods inherited from class org.jmock.core.MockObjectSupportTestCase |
|---|
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 |
| Methods inherited from class org.jmock.core.VerifyingTestCase |
|---|
registerToVerify, runBare, unregisterToVerify, verify |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConstructorInjectorTestCase()
| Method Detail |
|---|
protected Class getComponentAdapterType()
getComponentAdapterType in class AbstractComponentAdapterTestCaseprotected org.picocontainer.ComponentAdapter prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepDEF_verifyWithoutDependencyWorks in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepDEF_verifyDoesNotInstantiate in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepDEF_visitable()
AbstractComponentAdapterTestCase
prepDEF_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)
AbstractComponentAdapterTestCase
prepSER_isSerializable in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepSER_isXStreamSerializable in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepVER_verificationFails(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepVER_verificationFails in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepINS_createsNewInstances(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepINS_createsNewInstances in class AbstractComponentAdapterTestCasepicoContainer - container, may probably not be used.
protected org.picocontainer.ComponentAdapter prepINS_errorIsRethrown(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepINS_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)
AbstractComponentAdapterTestCase
prepINS_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_normalExceptionIsRethrownInsidePicoInitializationException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepINS_normalExceptionIsRethrownInsidePicoInitializationException in class AbstractComponentAdapterTestCasepicoContainer - 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)
AbstractComponentAdapterTestCase
prepRES_dependenciesAreResolved in class AbstractComponentAdapterTestCasepicoContainer - container, used to register dependencies.
protected org.picocontainer.ComponentAdapter prepRES_failingVerificationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepRES_failingVerificationWithCyclicDependencyException in class AbstractComponentAdapterTestCasepicoContainer - container, used to register dependencies.
protected org.picocontainer.ComponentAdapter prepRES_failingInstantiationWithCyclicDependencyException(org.picocontainer.MutablePicoContainer picoContainer)
AbstractComponentAdapterTestCase
prepRES_failingInstantiationWithCyclicDependencyException in class AbstractComponentAdapterTestCasepicoContainer - container, used to register dependencies.
public void testNormalExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
public void testInstantiationExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
public void XXXtestIllegalAccessExceptionThrownInCtorIsRethrownInsideInvocationTargetExeption()
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
NoSuchMethodException
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||