org.apache.commons.beanutils
Class DynaBeanMapDecoratorTestCase

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

public class DynaBeanMapDecoratorTestCase
extends junit.framework.TestCase

Test Case for the DynaBeanMapDecorator implementation class.

Author:
Niall Pemberton

Field Summary
private static DynaProperty dateProp
           
private static Date dateVal
           
private  Map decoratedMap
           
private  BasicDynaBean dynaBean
           
private static DynaClass dynaClass
           
private static Map emptyMap
           
private static DynaProperty intProp
           
private static Integer intVal
           
private static DynaProperty mapProp
           
private  Map mapVal
           
private  Map modifiableMap
           
private static DynaProperty nullProp
           
private static DynaProperty[] properties
           
private static DynaProperty stringProp
           
private static String stringVal
           
private  Object[] values
           
 
Constructor Summary
DynaBeanMapDecoratorTestCase(String name)
          Construct a new instance of this test case.
 
Method Summary
private  void checkUnmodifiable(String desc, Collection collection)
          Check that a Collection is not modifiable
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 testClear()
          Test clear() method
 void testContainsKey()
          Test containsKey() method
 void testContainsValue()
          Test containsValue() method
 void testEntrySet()
          Test entrySet() method
 void testGet()
          Test get() method
 void testIsEmpty()
          Test isEmpty() method
 void testIsReadOnly()
          Test isReadOnly() method
 void testKeySet()
          Test keySet() method
 void testPut()
          Test put() method
 void testPutAll()
          Test putAll() method
 void testRemove()
          Test remove() method
 void testSize()
          Test size() method
 void testValues()
          Test values() 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
 

Field Detail

stringProp

private static final DynaProperty stringProp

nullProp

private static final DynaProperty nullProp

intProp

private static final DynaProperty intProp

dateProp

private static final DynaProperty dateProp

mapProp

private static final DynaProperty mapProp

properties

private static final DynaProperty[] properties

dynaClass

private static final DynaClass dynaClass

stringVal

private static String stringVal

intVal

private static Integer intVal

dateVal

private static Date dateVal

mapVal

private Map mapVal

values

private Object[] values

dynaBean

private BasicDynaBean dynaBean

decoratedMap

private Map decoratedMap

modifiableMap

private Map modifiableMap

emptyMap

private static final Map emptyMap
Constructor Detail

DynaBeanMapDecoratorTestCase

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

Parameters:
name - Name of the test case
Method Detail

main

public static void main(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 Exception
Set up instance variables required by this test case.

Overrides:
setUp in class junit.framework.TestCase
Throws:
Exception

tearDown

public void tearDown()
Tear down instance variables required by this test case.

Overrides:
tearDown in class junit.framework.TestCase

testIsReadOnly

public void testIsReadOnly()
Test isReadOnly() method


testClear

public void testClear()
Test clear() method


testContainsKey

public void testContainsKey()
Test containsKey() method


testContainsValue

public void testContainsValue()
Test containsValue() method


testEntrySet

public void testEntrySet()
Test entrySet() method


testGet

public void testGet()
Test get() method


testIsEmpty

public void testIsEmpty()
Test isEmpty() method


testKeySet

public void testKeySet()
Test keySet() method


testPut

public void testPut()
Test put() method


testPutAll

public void testPutAll()
Test putAll() method


testRemove

public void testRemove()
Test remove() method


testSize

public void testSize()
Test size() method


testValues

public void testValues()
Test values() method


checkUnmodifiable

private void checkUnmodifiable(String desc,
                               Collection collection)
Check that a Collection is not modifiable



Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.