|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.picocontainer.tck.AbstractComponentAdapterTest
org.picocontainer.adapters.InstanceAdapterTestCase
public final class InstanceAdapterTestCase
Test the InstanceAdapter.
Nested Class Summary |
---|
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 | |
---|---|
InstanceAdapterTestCase()
|
Method Summary | |
---|---|
protected int |
getComponentAdapterNature()
|
protected Class |
getComponentAdapterType()
|
protected ComponentAdapter |
prepDEF_verifyDoesNotInstantiate(MutablePicoContainer picoContainer)
Prepare the test verifyDoesNotInstantiate. |
protected ComponentAdapter |
prepDEF_verifyWithoutDependencyWorks(MutablePicoContainer picoContainer)
Prepare the test verifyWithoutDependencyWorks. |
protected ComponentAdapter |
prepDEF_visitable()
Prepare the test visitable. |
protected ComponentAdapter |
prepSER_isSerializable(MutablePicoContainer picoContainer)
Prepare the test isSerializable. |
protected ComponentAdapter |
prepSER_isXStreamSerializable(MutablePicoContainer picoContainer)
Prepare the test isXStreamSerializable. |
void |
testComponentAdapterCanIgnoreLifecycle()
|
void |
testComponentAdapterReturnsSame()
|
void |
testCustomLifecycleCanBeInjected()
|
void |
testDefaultLifecycleStrategy()
|
void |
testGuardAgainstNullInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstanceAdapterTestCase()
Method Detail |
---|
public void testComponentAdapterReturnsSame()
public void testDefaultLifecycleStrategy()
public void testCustomLifecycleCanBeInjected()
public void testComponentAdapterCanIgnoreLifecycle()
public void testGuardAgainstNullInstance()
protected Class getComponentAdapterType()
getComponentAdapterType
in class AbstractComponentAdapterTest
org.picocontainer.tck.AbstractComponentAdapterTestCase#getComponentAdapterType()
protected int getComponentAdapterNature()
getComponentAdapterNature
in class AbstractComponentAdapterTest
org.picocontainer.tck.AbstractComponentAdapterTestCase#getComponentAdapterNature()
protected ComponentAdapter prepDEF_verifyWithoutDependencyWorks(MutablePicoContainer picoContainer)
prepDEF_verifyWithoutDependencyWorks
in class AbstractComponentAdapterTest
picoContainer
- container, may probably not be used.
org.picocontainer.tck.AbstractComponentAdapterTestCase#prepDEF_verifyWithoutDependencyWorks(org.picocontainer.MutablePicoContainer)
protected ComponentAdapter prepDEF_verifyDoesNotInstantiate(MutablePicoContainer picoContainer)
prepDEF_verifyDoesNotInstantiate
in class AbstractComponentAdapterTest
picoContainer
- container, may probably not be used.
org.picocontainer.tck.AbstractComponentAdapterTestCase#prepDEF_verifyDoesNotInstantiate(org.picocontainer.MutablePicoContainer)
protected ComponentAdapter prepDEF_visitable()
prepDEF_visitable
in class AbstractComponentAdapterTest
Parameter
, you have to
select a component, that have some.org.picocontainer.tck.AbstractComponentAdapterTestCase#prepDEF_visitable()
protected ComponentAdapter prepSER_isSerializable(MutablePicoContainer picoContainer)
prepSER_isSerializable
in class AbstractComponentAdapterTest
picoContainer
- container, may probably not be used.
org.picocontainer.tck.AbstractComponentAdapterTestCase#prepSER_isSerializable(org.picocontainer.MutablePicoContainer)
protected ComponentAdapter prepSER_isXStreamSerializable(MutablePicoContainer picoContainer)
prepSER_isXStreamSerializable
in class AbstractComponentAdapterTest
picoContainer
- container, may probably not be used.
org.picocontainer.tck.AbstractComponentAdapterTestCase#prepSER_isXStreamSerializable(org.picocontainer.MutablePicoContainer)
|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |