org.picocontainer.defaults
Class BeanPropertyComponentAdapterFactoryTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.picocontainer.tck.AbstractComponentAdapterFactoryTestCase
              extended by org.picocontainer.defaults.BeanPropertyComponentAdapterFactoryTestCase
All Implemented Interfaces:
junit.framework.Test

public class BeanPropertyComponentAdapterFactoryTestCase
extends AbstractComponentAdapterFactoryTestCase

Version:
$Revision: 2316 $
Author:
Aslak Hellesøy, Mirko Novakovic

Nested Class Summary
static class BeanPropertyComponentAdapterFactoryTestCase.A
           
static class BeanPropertyComponentAdapterFactoryTestCase.B
           
static class BeanPropertyComponentAdapterFactoryTestCase.Failing
           
static class BeanPropertyComponentAdapterFactoryTestCase.Foo
           
static class BeanPropertyComponentAdapterFactoryTestCase.Primitives
          Class that contains all types of Java primitives, to test if they are set correctly.
 
Field Summary
 
Fields inherited from class org.picocontainer.tck.AbstractComponentAdapterFactoryTestCase
picoContainer
 
Constructor Summary
BeanPropertyComponentAdapterFactoryTestCase()
           
 
Method Summary
private  org.picocontainer.ComponentAdapter createAdapterCallingSetMessage(java.lang.Class impl)
           
protected  org.picocontainer.defaults.ComponentAdapterFactory createComponentAdapterFactory()
           
 void testAllJavaPrimitiveAttributesShouldBeSetByTheAdapter()
           
 void testDelegateIsAccessible()
           
 void testFailingSetter()
           
 void testPropertiesSetAfterAdapterCreationShouldBeTakenIntoAccount()
           
 void testSetBeanPropertiesWithInvalidValueTypes()
           
 void testSetBeanPropertiesWithValueObjects()
           
 void testSetBeanPropertiesWithWrongNumberOfParametersThrowsPicoInitializationException()
          todo Is this test duplicated elsewhere? --MR
 void testSetDependenComponentWillBeSetByTheAdapter()
           
 void testSetProperties()
           
 
Methods inherited from class org.picocontainer.tck.AbstractComponentAdapterFactoryTestCase
setUp, testEquals, testRegisterComponent, testUnregisterComponent
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanPropertyComponentAdapterFactoryTestCase

public BeanPropertyComponentAdapterFactoryTestCase()
Method Detail

testSetProperties

public void testSetProperties()

testFailingSetter

public void testFailingSetter()

createComponentAdapterFactory

protected org.picocontainer.defaults.ComponentAdapterFactory createComponentAdapterFactory()
Specified by:
createComponentAdapterFactory in class AbstractComponentAdapterFactoryTestCase

testPropertiesSetAfterAdapterCreationShouldBeTakenIntoAccount

public void testPropertiesSetAfterAdapterCreationShouldBeTakenIntoAccount()

testDelegateIsAccessible

public void testDelegateIsAccessible()

createAdapterCallingSetMessage

private org.picocontainer.ComponentAdapter createAdapterCallingSetMessage(java.lang.Class impl)

testAllJavaPrimitiveAttributesShouldBeSetByTheAdapter

public void testAllJavaPrimitiveAttributesShouldBeSetByTheAdapter()
                                                           throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

testSetDependenComponentWillBeSetByTheAdapter

public void testSetDependenComponentWillBeSetByTheAdapter()

testSetBeanPropertiesWithValueObjects

public void testSetBeanPropertiesWithValueObjects()

testSetBeanPropertiesWithWrongNumberOfParametersThrowsPicoInitializationException

public void testSetBeanPropertiesWithWrongNumberOfParametersThrowsPicoInitializationException()
todo Is this test duplicated elsewhere? --MR


testSetBeanPropertiesWithInvalidValueTypes

public void testSetBeanPropertiesWithInvalidValueTypes()