Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.beanutils
Class DynaPropertyUtilsTestCase  view DynaPropertyUtilsTestCase download DynaPropertyUtilsTestCase.java

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.apache.commons.beanutils.DynaPropertyUtilsTestCase
All Implemented Interfaces:
junit.framework.Test

public class DynaPropertyUtilsTestCase
extends junit.framework.TestCase

Test accessing DynaBeans transparently via PropertyUtils.

Version:
$Revision: 1.12 $ $Date: 2004/02/28 13:18:36 $

Field Summary
protected  DynaBean bean
          The basic test bean for each test.
protected  java.lang.String[] describes
          The set of properties that should be described.
protected  TestBean nested
          The nested bean pointed at by the "nested" property.
 
Fields inherited from class junit.framework.TestCase
 
Constructor Summary
DynaPropertyUtilsTestCase(java.lang.String name)
          Construct a new instance of this test case.
 
Method Summary
protected  DynaClass createDynaClass()
          Create and return a DynaClass instance for our test DynaBean.
 void setUp()
          Set up instance variables required by this test case.
static junit.framework.Test suite()
          Return the tests included in this test suite.
 void tearDown()
          Tear down instance variables required by this test case.
 void testCopyPropertiesMap()
          Test copyProperties() when the origin is a a Map.
 void testDescribe()
          Test the describe() method.
 void testGetIndexedArguments()
          Corner cases on getIndexedProperty invalid arguments.
 void testGetIndexedValues()
          Positive and negative tests on getIndexedProperty valid arguments.
 void testGetMappedArguments()
          Corner cases on getMappedProperty invalid arguments.
 void testGetMappedPeriods()
          Test getting mapped values with periods in the key.
 void testGetMappedSlashes()
          Test getting mapped values with slashes in the key.
 void testGetMappedValues()
          Positive and negative tests on getMappedProperty valid arguments.
 void testGetNestedArguments()
          Corner cases on getNestedProperty invalid arguments.
 void testGetNestedBoolean()
          Test getNestedProperty on a boolean property.
 void testGetNestedDouble()
          Test getNestedProperty on a double property.
 void testGetNestedFloat()
          Test getNestedProperty on a float property.
 void testGetNestedInt()
          Test getNestedProperty on an int property.
 void testGetNestedLong()
          Test getNestedProperty on a long property.
 void testGetNestedReadOnly()
          Test getNestedProperty on a read-only String property.
 void testGetNestedShort()
          Test getNestedProperty on a short property.
 void testGetNestedString()
          Test getNestedProperty on a String property.
 void testGetNestedUnknown()
          Negative test getNestedProperty on an unknown property.
 void testGetSimpleArguments()
          Corner cases on getSimpleProperty invalid arguments.
 void testGetSimpleBoolean()
          Test getSimpleProperty on a boolean property.
 void testGetSimpleDouble()
          Test getSimpleProperty on a double property.
 void testGetSimpleFloat()
          Test getSimpleProperty on a float property.
 void testGetSimpleIndexed()
          Negative test getSimpleProperty on an indexed property.
 void testGetSimpleInt()
          Test getSimpleProperty on an int property.
 void testGetSimpleLong()
          Test getSimpleProperty on a long property.
 void testGetSimpleNested()
          Negative test getSimpleProperty on a nested property.
 void testGetSimpleShort()
          Test getSimpleProperty on a short property.
 void testGetSimpleString()
          Test getSimpleProperty on a String property.
 void testGetSimpleUnknown()
          Negative test getSimpleProperty on an unknown property.
 void testSetIndexedArguments()
          Corner cases on setIndexedProperty invalid arguments.
 void testSetIndexedValues()
          Positive and negative tests on setIndexedProperty valid arguments.
 void testSetMappedArguments()
          Corner cases on getMappedProperty invalid arguments.
 void testSetMappedValues()
          Positive and negative tests on setMappedProperty valid arguments.
 void testSetNestedArguments()
          Corner cases on setNestedProperty invalid arguments.
 void testSetNestedBoolean()
          Test setNextedProperty on a boolean property.
 void testSetNestedDouble()
          Test setNestedProperty on a double property.
 void testSetNestedFloat()
          Test setNestedProperty on a float property.
 void testSetNestedInt()
          Test setNestedProperty on a int property.
 void testSetNestedLong()
          Test setNestedProperty on a long property.
 void testSetNestedReadOnly()
          Test setNestedProperty on a read-only String property.
 void testSetNestedShort()
          Test setNestedProperty on a short property.
 void testSetNestedString()
          Test setNestedProperty on a String property.
 void testSetNestedUnknown()
          Test setNestedProperty on an unknown property name.
 void testSetNestedWriteOnly()
          Test setNestedProperty on a write-only String property.
 void testSetSimpleArguments()
          Corner cases on setSimpleProperty invalid arguments.
 void testSetSimpleBoolean()
          Test setSimpleProperty on a boolean property.
 void testSetSimpleDouble()
          Test setSimpleProperty on a double property.
 void testSetSimpleFloat()
          Test setSimpleProperty on a float property.
 void testSetSimpleIndexed()
          Negative test setSimpleProperty on an indexed property.
 void testSetSimpleInt()
          Test setSimpleProperty on a int property.
 void testSetSimpleLong()
          Test setSimpleProperty on a long property.
 void testSetSimpleNested()
          Negative test setSimpleProperty on a nested property.
 void testSetSimpleShort()
          Test setSimpleProperty on a short property.
 void testSetSimpleString()
          Test setSimpleProperty on a String property.
 void testSetSimpleUnknown()
          Test setSimpleProperty on an unknown property name.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, 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
 

Field Detail

bean

protected DynaBean bean
The basic test bean for each test.


describes

protected java.lang.String[] describes
The set of properties that should be described.


nested

protected TestBean nested
The nested bean pointed at by the "nested" property.

Constructor Detail

DynaPropertyUtilsTestCase

public DynaPropertyUtilsTestCase(java.lang.String name)
Construct a new instance of this test case.

Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Set up instance variables required by this test case.


suite

public static junit.framework.Test suite()
Return the tests included in this test suite.


tearDown

public void tearDown()
Tear down instance variables required by this test case.


testCopyPropertiesMap

public void testCopyPropertiesMap()
Test copyProperties() when the origin is a a Map.


testDescribe

public void testDescribe()
Test the describe() method.


testGetIndexedArguments

public void testGetIndexedArguments()
Corner cases on getIndexedProperty invalid arguments.


testGetIndexedValues

public void testGetIndexedValues()
Positive and negative tests on getIndexedProperty valid arguments.


testGetMappedArguments

public void testGetMappedArguments()
Corner cases on getMappedProperty invalid arguments.


testGetMappedPeriods

public void testGetMappedPeriods()
Test getting mapped values with periods in the key.


testGetMappedSlashes

public void testGetMappedSlashes()
Test getting mapped values with slashes in the key. This is different from periods because slashes are not syntactically significant.


testGetMappedValues

public void testGetMappedValues()
Positive and negative tests on getMappedProperty valid arguments.


testGetNestedArguments

public void testGetNestedArguments()
Corner cases on getNestedProperty invalid arguments.


testGetNestedBoolean

public void testGetNestedBoolean()
Test getNestedProperty on a boolean property.


testGetNestedDouble

public void testGetNestedDouble()
Test getNestedProperty on a double property.


testGetNestedFloat

public void testGetNestedFloat()
Test getNestedProperty on a float property.


testGetNestedInt

public void testGetNestedInt()
Test getNestedProperty on an int property.


testGetNestedLong

public void testGetNestedLong()
Test getNestedProperty on a long property.


testGetNestedReadOnly

public void testGetNestedReadOnly()
Test getNestedProperty on a read-only String property.


testGetNestedShort

public void testGetNestedShort()
Test getNestedProperty on a short property.


testGetNestedString

public void testGetNestedString()
Test getNestedProperty on a String property.


testGetNestedUnknown

public void testGetNestedUnknown()
Negative test getNestedProperty on an unknown property.


testGetSimpleArguments

public void testGetSimpleArguments()
Corner cases on getSimpleProperty invalid arguments.


testGetSimpleBoolean

public void testGetSimpleBoolean()
Test getSimpleProperty on a boolean property.


testGetSimpleDouble

public void testGetSimpleDouble()
Test getSimpleProperty on a double property.


testGetSimpleFloat

public void testGetSimpleFloat()
Test getSimpleProperty on a float property.


testGetSimpleIndexed

public void testGetSimpleIndexed()
Negative test getSimpleProperty on an indexed property.


testGetSimpleInt

public void testGetSimpleInt()
Test getSimpleProperty on an int property.


testGetSimpleLong

public void testGetSimpleLong()
Test getSimpleProperty on a long property.


testGetSimpleNested

public void testGetSimpleNested()
Negative test getSimpleProperty on a nested property.


testGetSimpleShort

public void testGetSimpleShort()
Test getSimpleProperty on a short property.


testGetSimpleString

public void testGetSimpleString()
Test getSimpleProperty on a String property.


testGetSimpleUnknown

public void testGetSimpleUnknown()
Negative test getSimpleProperty on an unknown property.


testSetIndexedArguments

public void testSetIndexedArguments()
Corner cases on setIndexedProperty invalid arguments.


testSetIndexedValues

public void testSetIndexedValues()
Positive and negative tests on setIndexedProperty valid arguments.


testSetMappedArguments

public void testSetMappedArguments()
Corner cases on getMappedProperty invalid arguments.


testSetMappedValues

public void testSetMappedValues()
Positive and negative tests on setMappedProperty valid arguments.


testSetNestedArguments

public void testSetNestedArguments()
Corner cases on setNestedProperty invalid arguments.


testSetNestedBoolean

public void testSetNestedBoolean()
Test setNextedProperty on a boolean property.


testSetNestedDouble

public void testSetNestedDouble()
Test setNestedProperty on a double property.


testSetNestedFloat

public void testSetNestedFloat()
Test setNestedProperty on a float property.


testSetNestedInt

public void testSetNestedInt()
Test setNestedProperty on a int property.


testSetNestedLong

public void testSetNestedLong()
Test setNestedProperty on a long property.


testSetNestedReadOnly

public void testSetNestedReadOnly()
Test setNestedProperty on a read-only String property.


testSetNestedShort

public void testSetNestedShort()
Test setNestedProperty on a short property.


testSetNestedString

public void testSetNestedString()
Test setNestedProperty on a String property.


testSetNestedUnknown

public void testSetNestedUnknown()
Test setNestedProperty on an unknown property name.


testSetNestedWriteOnly

public void testSetNestedWriteOnly()
Test setNestedProperty on a write-only String property.


testSetSimpleArguments

public void testSetSimpleArguments()
Corner cases on setSimpleProperty invalid arguments.


testSetSimpleBoolean

public void testSetSimpleBoolean()
Test setSimpleProperty on a boolean property.


testSetSimpleDouble

public void testSetSimpleDouble()
Test setSimpleProperty on a double property.


testSetSimpleFloat

public void testSetSimpleFloat()
Test setSimpleProperty on a float property.


testSetSimpleIndexed

public void testSetSimpleIndexed()
Negative test setSimpleProperty on an indexed property.


testSetSimpleInt

public void testSetSimpleInt()
Test setSimpleProperty on a int property.


testSetSimpleLong

public void testSetSimpleLong()
Test setSimpleProperty on a long property.


testSetSimpleNested

public void testSetSimpleNested()
Negative test setSimpleProperty on a nested property.


testSetSimpleShort

public void testSetSimpleShort()
Test setSimpleProperty on a short property.


testSetSimpleString

public void testSetSimpleString()
Test setSimpleProperty on a String property.


testSetSimpleUnknown

public void testSetSimpleUnknown()
Test setSimpleProperty on an unknown property name.


createDynaClass

protected DynaClass createDynaClass()
Create and return a DynaClass instance for our test DynaBean.