public class DefaultContainerTest extends junit.framework.TestCase
DefaultContainer
implementation.Constructor and Description |
---|
DefaultContainerTest() |
Modifier and Type | Method and Description |
---|---|
Container |
getContainer() |
void |
testDependencyCycleDetection()
Checks that dependency cycles are detected correctly by throwing a
corresponding
DependencyCycleException . |
void |
testInstantiation()
Tests the
Container.getObject(Class, String) method to return the
correctly initialized instance of TestImplementation . |
void |
testInstantiationNullImplementationName()
Tests the
Container.getObject(Class, String) method to return an
array of correctly initialized instances of TestImplementation
when given a null value for the implementation name argument. |
void |
testProperties()
Tests that model properties are correctly provided to implementations.
|
void |
testSerializable()
Tests the
Container.getObject(Class, String) method to corectly
detect non-serializable implementation classes in context scope. |
void |
testSingleton()
Tests the
Container.getObject(Class, String) method to return the
same instance of TestImplementation for successive calls. |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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, failNotEquals, failNotSame, failSame
public DefaultContainerTest()
public Container getContainer()
public void testDependencyCycleDetection() throws Exception
DependencyCycleException
.Exception
public void testInstantiation() throws Exception
Container.getObject(Class, String)
method to return the
correctly initialized instance of TestImplementation
.Exception
public void testInstantiationNullImplementationName() throws Exception
Container.getObject(Class, String)
method to return an
array of correctly initialized instances of TestImplementation
when given a null
value for the implementation name argument.Exception
public void testProperties()
public void testSerializable() throws Exception
Container.getObject(Class, String)
method to corectly
detect non-serializable implementation classes in context scope.Exception
public void testSingleton() throws Exception
Container.getObject(Class, String)
method to return the
same instance of TestImplementation
for successive calls.Exception
Copyright © 2005-2012 jDTAUS. All Rights Reserved.