|
||||||||||
| 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.BasicDynaBeanTestCase
org.apache.commons.beanutils.WrapDynaBeanTestCase
public class WrapDynaBeanTestCase
Test Case for the WrapDynaBean implementation class.
These tests were based on the ones in PropertyUtilsTestCase
because the two classes provide similar levels of functionality.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.beanutils.BasicDynaBeanTestCase |
|---|
bean, properties |
| Constructor Summary | |
|---|---|
WrapDynaBeanTestCase(String name)
Construct a new instance of this test case. |
|
| Method Summary | |
|---|---|
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 |
testGetInstance()
Tests getInstance method |
void |
testIndexedProperties()
The set() method. |
void |
testMappedContains()
The contains() method is not supported by the
WrapDynaBean implementation class. |
void |
testMappedRemove()
The remove() method is not supported by the
WrapDynaBean implementation class. |
void |
testNewInstance()
Tests the newInstance implementation for WrapDynaClass |
void |
testSerialization()
Serialization and deserialization tests. |
void |
testSimpleProperties()
The set() method. |
| 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 |
| Constructor Detail |
|---|
public WrapDynaBeanTestCase(String name)
name - Name of the test case| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class BasicDynaBeanTestCaseExceptionpublic static junit.framework.Test suite()
public void tearDown()
tearDown in class BasicDynaBeanTestCasepublic void testSimpleProperties()
set() method.
public void testIndexedProperties()
set() method.
public void testMappedContains()
contains() method is not supported by the
WrapDynaBean implementation class.
testMappedContains in class BasicDynaBeanTestCasepublic void testMappedRemove()
remove() method is not supported by the
WrapDynaBean implementation class.
testMappedRemove in class BasicDynaBeanTestCasepublic void testGetInstance()
public void testNewInstance()
throws Exception
Exceptionpublic void testSerialization()
testSerialization in class BasicDynaBeanTestCase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||