org.apache.commons.beanutils
Class WrapDynaBeanTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.commons.beanutils.BasicDynaBeanTestCase
              extended by org.apache.commons.beanutils.WrapDynaBeanTestCase
All Implemented Interfaces:
junit.framework.Test

public class WrapDynaBeanTestCase
extends BasicDynaBeanTestCase

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.

Version:
$Revision: 745077 $ $Date: 2009-02-17 14:02:16 +0000 (Tue, 17 Feb 2009) $
Author:
Craig R. McClanahan

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 org.apache.commons.beanutils.BasicDynaBeanTestCase
createDynaClass, testGetDescriptorArguments, testGetDescriptorBase, testGetDescriptorBoolean, testGetDescriptorDouble, testGetDescriptorFloat, testGetDescriptorInt, testGetDescriptorLong, testGetDescriptors, testGetDescriptorSecond, testGetDescriptorShort, testGetDescriptorString, testGetIndexedArguments, testGetIndexedValues, testGetMappedArguments, testGetMappedValues, testGetSimpleArguments, testGetSimpleBoolean, testGetSimpleDouble, testGetSimpleFloat, testGetSimpleInt, testGetSimpleLong, testGetSimpleShort, testGetSimpleString, testSetIndexedArguments, testSetIndexedValues, testSetMappedValues, testSetSimpleBoolean, testSetSimpleDouble, testSetSimpleFloat, testSetSimpleInt, testSetSimpleLong, testSetSimpleShort, testSetSimpleString
 
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

WrapDynaBeanTestCase

public WrapDynaBeanTestCase(String name)
Construct a new instance of this test case.

Parameters:
name - Name of the test case
Method Detail

setUp

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

Overrides:
setUp in class BasicDynaBeanTestCase
Throws:
Exception

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.

Overrides:
tearDown in class BasicDynaBeanTestCase

testSimpleProperties

public void testSimpleProperties()
The set() method.


testIndexedProperties

public void testIndexedProperties()
The set() method.


testMappedContains

public void testMappedContains()
The contains() method is not supported by the WrapDynaBean implementation class.

Overrides:
testMappedContains in class BasicDynaBeanTestCase

testMappedRemove

public void testMappedRemove()
The remove() method is not supported by the WrapDynaBean implementation class.

Overrides:
testMappedRemove in class BasicDynaBeanTestCase

testGetInstance

public void testGetInstance()
Tests getInstance method


testNewInstance

public void testNewInstance()
                     throws Exception
Tests the newInstance implementation for WrapDynaClass

Throws:
Exception

testSerialization

public void testSerialization()
Serialization and deserialization tests. (WrapDynaBean is now serializable, although WrapDynaClass still is not)

Overrides:
testSerialization in class BasicDynaBeanTestCase


Copyright © 2000-2010 The Apache Software Foundation. All Rights Reserved.