|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.beanutils.DynaPropertyUtilsTestCase
public class DynaPropertyUtilsTestCase
Test accessing DynaBeans transparently via PropertyUtils.
| Field Summary | |
|---|---|
protected DynaBean |
bean
The basic test bean for each test. |
protected String[] |
describes
The set of properties that should be described. |
protected TestBean |
nested
The nested bean pointed at by the "nested" property. |
| Constructor Summary | |
|---|---|
DynaPropertyUtilsTestCase(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 |
|---|
protected DynaBean bean
protected String[] describes
protected TestBean nested
| Constructor Detail |
|---|
public DynaPropertyUtilsTestCase(String name)
name - Name of the test case| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic static junit.framework.Test suite()
public void tearDown()
tearDown in class junit.framework.TestCasepublic void testCopyPropertiesMap()
Map.
public void testDescribe()
public void testGetIndexedArguments()
public void testGetIndexedValues()
public void testGetMappedArguments()
public void testGetMappedPeriods()
public void testGetMappedSlashes()
public void testGetMappedValues()
public void testGetNestedArguments()
public void testGetNestedBoolean()
public void testGetNestedDouble()
public void testGetNestedFloat()
public void testGetNestedInt()
public void testGetNestedLong()
public void testGetNestedReadOnly()
public void testGetNestedShort()
public void testGetNestedString()
public void testGetNestedUnknown()
public void testGetSimpleArguments()
public void testGetSimpleBoolean()
public void testGetSimpleDouble()
public void testGetSimpleFloat()
public void testGetSimpleIndexed()
public void testGetSimpleInt()
public void testGetSimpleLong()
public void testGetSimpleNested()
public void testGetSimpleShort()
public void testGetSimpleString()
public void testGetSimpleUnknown()
public void testSetIndexedArguments()
public void testSetIndexedValues()
public void testSetMappedArguments()
public void testSetMappedValues()
public void testSetNestedArguments()
public void testSetNestedBoolean()
public void testSetNestedDouble()
public void testSetNestedFloat()
public void testSetNestedInt()
public void testSetNestedLong()
public void testSetNestedReadOnly()
public void testSetNestedShort()
public void testSetNestedString()
public void testSetNestedUnknown()
public void testSetNestedWriteOnly()
public void testSetSimpleArguments()
public void testSetSimpleBoolean()
public void testSetSimpleDouble()
public void testSetSimpleFloat()
public void testSetSimpleIndexed()
public void testSetSimpleInt()
public void testSetSimpleLong()
public void testSetSimpleNested()
public void testSetSimpleShort()
public void testSetSimpleString()
public void testSetSimpleUnknown()
protected DynaClass createDynaClass()
DynaClass instance for our test
DynaBean.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||