org.picocontainer.script.xml
Class XMLContainerBuilderTestCase

java.lang.Object
  extended by org.picocontainer.script.AbstractScriptedContainerBuilderTestCase
      extended by org.picocontainer.script.xml.XMLContainerBuilderTestCase

public final class XMLContainerBuilderTestCase
extends AbstractScriptedContainerBuilderTestCase

Author:
Paul Hammant, Aslak Hellesøy, Jeppe Cramon, Mauro Talevi

Nested Class Summary
static class XMLContainerBuilderTestCase.ContainerTestFactory
           
static class XMLContainerBuilderTestCase.MyComponentFactory
           
static class XMLContainerBuilderTestCase.MyComponentFactory2
           
static class XMLContainerBuilderTestCase.MyComponentFactory3
           
static class XMLContainerBuilderTestCase.StaticWriterComponentMonitor
           
static class XMLContainerBuilderTestCase.TestFactory
           
static class XMLContainerBuilderTestCase.WrapsTouchable
           
 
Constructor Summary
XMLContainerBuilderTestCase()
           
 
Method Summary
 void BROKEN_testComponentCanUsePredefinedNestedCAF()
           
 void BROKEN_testNestedCAFLooksRightinXml()
           
 void testAdaptersAlsoUseBehaviorFactory()
           
 void testCachingCanBeSetRedunadantlyAtContainerLevel()
           
 void testCachingCanBeUnsetAtContainerLevel()
           
 void testChainOfWrappedComponents()
           
 void testClassLoaderHierarchy()
           
 void testComponentAdapterWithNoClassThrowsPicoContainerMarkupException()
           
 void testComponentAdapterWithNoKeyUsesTypeAsKey()
           
 void testComponentAdapterWithSpecifiedFactory()
           
 void testComponentInstanceWithBeanFactory()
           
 void testComponentInstanceWithBeanFactoryAndInstanceThatIsDefinedInContainer()
           
 void testComponentInstanceWithClassKey()
           
 void testComponentInstanceWithContainerFactoryAndKey()
           
 void testComponentInstanceWithDefaultFactory()
           
 void testComponentInstanceWithFactoryAndKey()
           
 void testComponentInstanceWithFactoryCanBeUsed()
           
 void testComponentInstanceWithKey()
           
 void testComponentInstanceWithNoChildElementThrowsPicoContainerMarkupException()
           
 void testComponentMonitorCanBeSpecified()
           
 void testComponentMonitorCanBeSpecifiedIfCAFIsSpecified()
           
 void testConstantParameterWithNoChildElementThrowsPicoContainerMarkupException()
           
 void testContainerCanHostAChild()
           
 void testCreateContainerFromNullScriptThrowsNullPointerException()
           
 void testCreateContainerFromScriptThrowsSAXException()
           
 void testCreateSimpleContainer()
           
 void testCreateSimpleContainerWithExplicitKeysAndImplicitParameter()
           
 void testCreateSimpleContainerWithExplicitKeysAndParameters()
           
 void testCustomInjectionFactory()
           
 void testEmptyScriptDoesNotThrowsEmptyCompositionException()
           
 void testInstantiationOfComponentsWithComponentAdapter()
           
 void testInstantiationOfComponentsWithParameterInstancesOfSameComponent()
           
 void testInstantiationOfComponentsWithParameterInstancesOfSameComponentAndBeanFactory()
           
 void testInstantiationOfComponentsWithParameterKeys()
           
 void testInstantiationOfComponentsWithParams()
           
 void testListSupport()
           
 void testMapSupport()
           
 void testNoComponentValueTypeWithComponentKeyTypeFailure()
           
 void testNoEmptyCollectionWithComponentKeyTypeFailure()
           
 void testNoEmptyCollectionWithComponentValueTypeFailure()
           
 void testNoImplementationClassThrowsPicoContainerMarkupException()
           
 void testNonParameterElementsAreIgnoredInComponentImplementation()
           
 void testShouldThrowExceptionForNonExistantCafClass()
           
 void testUnknownclassThrowsPicoContainerMarkupException()
           
 
Methods inherited from class org.picocontainer.script.AbstractScriptedContainerBuilderTestCase
buildContainer, buildContainer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLContainerBuilderTestCase

public XMLContainerBuilderTestCase()
Method Detail

testCreateSimpleContainer

public void testCreateSimpleContainer()

testCreateSimpleContainerWithExplicitKeysAndParameters

public void testCreateSimpleContainerWithExplicitKeysAndParameters()

testCreateSimpleContainerWithExplicitKeysAndImplicitParameter

public void testCreateSimpleContainerWithExplicitKeysAndImplicitParameter()

testNonParameterElementsAreIgnoredInComponentImplementation

public void testNonParameterElementsAreIgnoredInComponentImplementation()

testContainerCanHostAChild

public void testContainerCanHostAChild()

testClassLoaderHierarchy

public void testClassLoaderHierarchy()
                              throws IOException
Throws:
IOException

testUnknownclassThrowsPicoContainerMarkupException

public void testUnknownclassThrowsPicoContainerMarkupException()

testNoImplementationClassThrowsPicoContainerMarkupException

public void testNoImplementationClassThrowsPicoContainerMarkupException()

testConstantParameterWithNoChildElementThrowsPicoContainerMarkupException

public void testConstantParameterWithNoChildElementThrowsPicoContainerMarkupException()

testEmptyScriptDoesNotThrowsEmptyCompositionException

public void testEmptyScriptDoesNotThrowsEmptyCompositionException()

testCreateContainerFromScriptThrowsSAXException

public void testCreateContainerFromScriptThrowsSAXException()

testCreateContainerFromNullScriptThrowsNullPointerException

public void testCreateContainerFromNullScriptThrowsNullPointerException()

testShouldThrowExceptionForNonExistantCafClass

public void testShouldThrowExceptionForNonExistantCafClass()

testComponentInstanceWithNoChildElementThrowsPicoContainerMarkupException

public void testComponentInstanceWithNoChildElementThrowsPicoContainerMarkupException()

testComponentInstanceWithFactoryCanBeUsed

public void testComponentInstanceWithFactoryCanBeUsed()

testComponentInstanceWithDefaultFactory

public void testComponentInstanceWithDefaultFactory()

testComponentInstanceWithBeanFactory

public void testComponentInstanceWithBeanFactory()

testComponentInstanceWithBeanFactoryAndInstanceThatIsDefinedInContainer

public void testComponentInstanceWithBeanFactoryAndInstanceThatIsDefinedInContainer()

testComponentInstanceWithKey

public void testComponentInstanceWithKey()

testComponentInstanceWithClassKey

public void testComponentInstanceWithClassKey()

testComponentInstanceWithFactoryAndKey

public void testComponentInstanceWithFactoryAndKey()

testComponentInstanceWithContainerFactoryAndKey

public void testComponentInstanceWithContainerFactoryAndKey()

testInstantiationOfComponentsWithParams

public void testInstantiationOfComponentsWithParams()

testInstantiationOfComponentsWithParameterInstancesOfSameComponent

public void testInstantiationOfComponentsWithParameterInstancesOfSameComponent()

testInstantiationOfComponentsWithParameterInstancesOfSameComponentAndBeanFactory

public void testInstantiationOfComponentsWithParameterInstancesOfSameComponentAndBeanFactory()

testInstantiationOfComponentsWithParameterKeys

public void testInstantiationOfComponentsWithParameterKeys()

testInstantiationOfComponentsWithComponentAdapter

public void testInstantiationOfComponentsWithComponentAdapter()

testComponentAdapterWithSpecifiedFactory

public void testComponentAdapterWithSpecifiedFactory()
                                              throws IOException
Throws:
IOException

testComponentAdapterWithNoKeyUsesTypeAsKey

public void testComponentAdapterWithNoKeyUsesTypeAsKey()

testComponentAdapterWithNoClassThrowsPicoContainerMarkupException

public void testComponentAdapterWithNoClassThrowsPicoContainerMarkupException()

testCachingCanBeUnsetAtContainerLevel

public void testCachingCanBeUnsetAtContainerLevel()

testCachingCanBeSetRedunadantlyAtContainerLevel

public void testCachingCanBeSetRedunadantlyAtContainerLevel()

testCustomInjectionFactory

public void testCustomInjectionFactory()
                                throws IOException
Throws:
IOException

testComponentMonitorCanBeSpecified

public void testComponentMonitorCanBeSpecified()

testComponentMonitorCanBeSpecifiedIfCAFIsSpecified

public void testComponentMonitorCanBeSpecifiedIfCAFIsSpecified()

testAdaptersAlsoUseBehaviorFactory

public void testAdaptersAlsoUseBehaviorFactory()

BROKEN_testNestedCAFLooksRightinXml

public void BROKEN_testNestedCAFLooksRightinXml()

BROKEN_testComponentCanUsePredefinedNestedCAF

public void BROKEN_testComponentCanUsePredefinedNestedCAF()

testChainOfWrappedComponents

public void testChainOfWrappedComponents()

testListSupport

public void testListSupport()

testMapSupport

public void testMapSupport()

testNoEmptyCollectionWithComponentKeyTypeFailure

public void testNoEmptyCollectionWithComponentKeyTypeFailure()

testNoComponentValueTypeWithComponentKeyTypeFailure

public void testNoComponentValueTypeWithComponentKeyTypeFailure()

testNoEmptyCollectionWithComponentValueTypeFailure

public void testNoEmptyCollectionWithComponentValueTypeFailure()


Copyright © 2003-2010 Codehaus. All Rights Reserved.