|
|||||||||
| Home >> All >> org >> apache >> commons >> [ beanutils overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.commons.beanutils
Class LazyDynaMapTestCase

java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.commons.beanutils.LazyDynaMapTestCase
- All Implemented Interfaces:
- junit.framework.Test
- public class LazyDynaMapTestCase
- extends junit.framework.TestCase
Test Case for the LazyDynaMap implementation class.
| Field Summary | |
protected LazyDynaMap |
dynaMap
|
protected java.lang.Integer |
testInteger1
|
protected java.lang.Integer |
testInteger2
|
protected java.lang.String |
testKey
|
protected java.lang.String |
testProperty
|
protected java.lang.String |
testPropertyA
|
protected java.lang.String |
testPropertyB
|
protected java.lang.String |
testString1
|
protected java.lang.String |
testString2
|
| Fields inherited from class junit.framework.TestCase |
|
| Constructor Summary | |
LazyDynaMapTestCase(java.lang.String name)
Construct a new instance of this test case. |
|
| Method Summary | |
static void |
main(java.lang.String[] args)
Run thus Test |
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 |
testGeneral()
General Tests |
void |
testIndexedDynaBeanArray()
Test Getting/Setting an DynaBean[] array |
void |
testIndexedInvalidType()
Test setting indexed property for type which is not List or Array |
void |
testIndexedLinkedList()
Test Getting/Setting a List 'Indexed' Property - use alternative List (LinkedList) |
void |
testIndexedObjectArray()
Test Getting/Setting an Object array 'Indexed' Property - use String[] |
void |
testIndexedPrimitiveArray()
Test Getting/Setting a primitive array 'Indexed' Property - use int[] |
void |
testIndexedPropertyDefault()
Test Getting/Setting an 'Indexed' Property - default ArrayList property |
void |
testIndexedPropertyRestricted()
Test Setting an Indexed Property when MutableDynaClass is set to restricted |
void |
testIndexedPropertyUtils()
Test Setting an 'Indexed' Property using PropertyUtils |
void |
testMappedInvalidType()
Test setting mapped property for type which is not Map |
void |
testMappedPropertyDefault()
Test Getting/Setting a 'Mapped' Property - default HashMap property |
void |
testMappedPropertyRestricted()
Test Setting a Mapped Property when MutableDynaClass is set to restricted |
void |
testMappedPropertyTreeMap()
Test Getting/Setting a 'Mapped' Property - use TreeMap property |
void |
testMappedPropertyUtils()
Test Setting a 'Mapped' Property using PropertyUtils |
void |
testSimpleProperty()
Test Getting/Setting a Simple Property |
void |
testSimplePropertyRestricted()
Test Setting a Simple Property when MutableDynaClass is set to restricted |
| 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 |
dynaMap
protected LazyDynaMap dynaMap
testProperty
protected java.lang.String testProperty
testPropertyA
protected java.lang.String testPropertyA
testPropertyB
protected java.lang.String testPropertyB
testString1
protected java.lang.String testString1
testString2
protected java.lang.String testString2
testInteger1
protected java.lang.Integer testInteger1
testInteger2
protected java.lang.Integer testInteger2
testKey
protected java.lang.String testKey
| Constructor Detail |
LazyDynaMapTestCase
public LazyDynaMapTestCase(java.lang.String name)
- Construct a new instance of this test case.
| Method Detail |
main
public static void main(java.lang.String[] args)
- Run thus Test
suite
public static junit.framework.Test suite()
- Return the tests included in this test suite.
setUp
public void setUp()
throws java.lang.Exception
- Set up instance variables required by this test case.
tearDown
public void tearDown()
- Tear down instance variables required by this test case.
testGeneral
public void testGeneral()
- General Tests
testSimpleProperty
public void testSimpleProperty()
- Test Getting/Setting a Simple Property
testSimplePropertyRestricted
public void testSimplePropertyRestricted()
- Test Setting a Simple Property when MutableDynaClass is set to restricted
testMappedPropertyDefault
public void testMappedPropertyDefault()
- Test Getting/Setting a 'Mapped' Property - default HashMap property
testMappedPropertyTreeMap
public void testMappedPropertyTreeMap()
- Test Getting/Setting a 'Mapped' Property - use TreeMap property
testMappedPropertyUtils
public void testMappedPropertyUtils()
- Test Setting a 'Mapped' Property using PropertyUtils
testMappedPropertyRestricted
public void testMappedPropertyRestricted()
- Test Setting a Mapped Property when MutableDynaClass is set to restricted
testMappedInvalidType
public void testMappedInvalidType()
- Test setting mapped property for type which is not Map
testIndexedPropertyDefault
public void testIndexedPropertyDefault()
- Test Getting/Setting an 'Indexed' Property - default ArrayList property
testIndexedLinkedList
public void testIndexedLinkedList()
- Test Getting/Setting a List 'Indexed' Property - use alternative List (LinkedList)
testIndexedPrimitiveArray
public void testIndexedPrimitiveArray()
- Test Getting/Setting a primitive array 'Indexed' Property - use int[]
testIndexedObjectArray
public void testIndexedObjectArray()
- Test Getting/Setting an Object array 'Indexed' Property - use String[]
testIndexedDynaBeanArray
public void testIndexedDynaBeanArray()
- Test Getting/Setting an DynaBean[] array
testIndexedPropertyUtils
public void testIndexedPropertyUtils()
- Test Setting an 'Indexed' Property using PropertyUtils
testIndexedPropertyRestricted
public void testIndexedPropertyRestricted()
- Test Setting an Indexed Property when MutableDynaClass is set to restricted
testIndexedInvalidType
public void testIndexedInvalidType()
- Test setting indexed property for type which is not List or Array
|
|||||||||
| Home >> All >> org >> apache >> commons >> [ beanutils overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC