org.picocontainer.behaviors
Class PropertyApplyingBehaviorFactoryTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.picocontainer.tck.AbstractComponentFactoryTestCase
              extended by org.picocontainer.behaviors.PropertyApplyingBehaviorFactoryTestCase
All Implemented Interfaces:
junit.framework.Test

public class PropertyApplyingBehaviorFactoryTestCase
extends AbstractComponentFactoryTestCase

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

Nested Class Summary
static class PropertyApplyingBehaviorFactoryTestCase.A
           
static class PropertyApplyingBehaviorFactoryTestCase.B
           
static class PropertyApplyingBehaviorFactoryTestCase.Failing
           
static class PropertyApplyingBehaviorFactoryTestCase.Foo
           
static class PropertyApplyingBehaviorFactoryTestCase.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.AbstractComponentFactoryTestCase
picoContainer
 
Constructor Summary
PropertyApplyingBehaviorFactoryTestCase()
           
 
Method Summary
protected  org.picocontainer.ComponentFactory createComponentFactory()
           
 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.AbstractComponentFactoryTestCase
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PropertyApplyingBehaviorFactoryTestCase

public PropertyApplyingBehaviorFactoryTestCase()
Method Detail

testSetProperties

public void testSetProperties()

testFailingSetter

public void testFailingSetter()

createComponentFactory

protected org.picocontainer.ComponentFactory createComponentFactory()
Specified by:
createComponentFactory in class AbstractComponentFactoryTestCase

testPropertiesSetAfterAdapterCreationShouldBeTakenIntoAccount

public void testPropertiesSetAfterAdapterCreationShouldBeTakenIntoAccount()

testDelegateIsAccessible

public void testDelegateIsAccessible()

testAllJavaPrimitiveAttributesShouldBeSetByTheAdapter

public void testAllJavaPrimitiveAttributesShouldBeSetByTheAdapter()
                                                           throws MalformedURLException
Throws:
MalformedURLException

testSetDependenComponentWillBeSetByTheAdapter

public void testSetDependenComponentWillBeSetByTheAdapter()

testSetBeanPropertiesWithValueObjects

public void testSetBeanPropertiesWithValueObjects()

testSetBeanPropertiesWithWrongNumberOfParametersThrowsPicoInitializationException

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


testSetBeanPropertiesWithInvalidValueTypes

public void testSetBeanPropertiesWithInvalidValueTypes()


Copyright © 2003-2007 Codehaus. All Rights Reserved.