|
||||||||||
| 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.LazyDynaMapTestCase
public class LazyDynaMapTestCase
Test Case for the LazyDynaMap implementation class.
| Field Summary | |
|---|---|
protected LazyDynaMap |
dynaMap
|
protected Integer |
testInteger1
|
protected Integer |
testInteger2
|
protected String |
testKey
|
protected String |
testProperty
|
protected String |
testPropertyA
|
protected String |
testPropertyB
|
protected String |
testString1
|
protected String |
testString2
|
| Constructor Summary | |
|---|---|
LazyDynaMapTestCase(String name)
Construct a new instance of this test case. |
|
| Method Summary | |
|---|---|
static void |
main(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 |
testNewInstance()
Test creating using DynaClass.newInstance() |
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 |
|---|
protected LazyDynaMap dynaMap
protected String testProperty
protected String testPropertyA
protected String testPropertyB
protected String testString1
protected String testString2
protected Integer testInteger1
protected Integer testInteger2
protected String testKey
| Constructor Detail |
|---|
public LazyDynaMapTestCase(String name)
name - Name of the test case| Method Detail |
|---|
public static void main(String[] args)
public static junit.framework.Test suite()
public void setUp()
throws Exception
setUp in class junit.framework.TestCaseExceptionpublic void tearDown()
tearDown in class junit.framework.TestCasepublic void testGeneral()
public void testSimpleProperty()
public void testSimplePropertyRestricted()
public void testMappedPropertyDefault()
public void testMappedPropertyTreeMap()
public void testMappedPropertyUtils()
public void testMappedPropertyRestricted()
public void testMappedInvalidType()
public void testIndexedPropertyDefault()
public void testIndexedLinkedList()
public void testIndexedPrimitiveArray()
public void testIndexedObjectArray()
public void testIndexedDynaBeanArray()
public void testIndexedPropertyUtils()
public void testIndexedPropertyRestricted()
public void testIndexedInvalidType()
public void testNewInstance()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||