org.apache.commons.beanutils.bugs
Class Jira61TestCase

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

public class Jira61TestCase
extends junit.framework.TestCase

Test case for Jira issue# BEANUTILS-61.

See https://issues.apache.org/jira/browse/BEANUTILS-61

WrapDynaBean is a secial case for the PropertyUtils's isReadable() and isWriteable() methods - since the bean being wrapped may have read-only or write-only properties (unlike regular DynaBeans.

Version:
$Revision: 553357 $ $Date: 2007-07-04 21:10:25 -0400 (Wed, 04 Jul 2007) $

Constructor Summary
Jira61TestCase(String name)
          Create a test case with the specified name.
 
Method Summary
static void main(String[] args)
          Run the Test.
protected  void setUp()
          Set up.
static junit.framework.Test suite()
          Create a test suite for this test.
protected  void tearDown()
          Tear Down.
 void testIssue_BEANUTILS_61_BeanUtils_copyProperties_from_WrapDynaBean()
          Test BeanUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.
 void testIssue_BEANUTILS_61_BeanUtils_copyProperties_to_WrapDynaBean()
          Test BeanUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.
 void testIssue_BEANUTILS_61_PropertyUtils_copyProperties_from_WrapDynaBean()
          Test PropertyUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.
 void testIssue_BEANUTILS_61_PropertyUtils_copyProperties_to_WrapDynaBean()
          Test PropertyUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.
 void testIssue_BEANUTILS_61_PropertyUtils_getProperty_Indexed()
          Test PropertyUtils.getProperty(Object, String) for indexed properties.
 void testIssue_BEANUTILS_61_PropertyUtils_getProperty_Mapped()
          Test PropertyUtils.getProperty(Object, String) for mapped properties.
 void testIssue_BEANUTILS_61_PropertyUtils_getProperty()
          Test PropertyUtils.getProperty(Object, String) for simple properties.
 void testIssue_BEANUTILS_61_PropertyUtils_isReadable_Indexed()
          Test PropertyUtils.isReadable(Object, String) for indexed properties.
 void testIssue_BEANUTILS_61_PropertyUtils_isReadable_Mapped()
          Test PropertyUtils.isReadable(Object, String) for mapped properties.
 void testIssue_BEANUTILS_61_PropertyUtils_isReadable()
          Test PropertyUtils.isReadable(Object, String) for simple properties.
 void testIssue_BEANUTILS_61_PropertyUtils_isWriteable_Indexed()
          Test PropertyUtils.isWriteable(Object, String) for indexed properties.
 void testIssue_BEANUTILS_61_PropertyUtils_isWriteable_Mapped()
          Test PropertyUtils.isWriteable(Object, String) for mapped properties.
 void testIssue_BEANUTILS_61_PropertyUtils_isWriteable()
          Test PropertyUtils.isWriteable(Object, String) for simple properties.
 void testIssue_BEANUTILS_61_PropertyUtils_setProperty_Indexed()
          Test PropertyUtils.setProperty(Object, String, Object) for indexed properties.
 void testIssue_BEANUTILS_61_PropertyUtils_setProperty_Mapped()
          Test PropertyUtils.setProperty(Object, String, Object) for mapped properties.
 void testIssue_BEANUTILS_61_PropertyUtils_setProperty()
          Test PropertyUtils.setProperty(Object, String, Object) for simple properties.
 
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

Jira61TestCase

public Jira61TestCase(String name)
Create a test case with the specified name.

Parameters:
name - The name of the test
Method Detail

main

public static void main(String[] args)
Run the Test.

Parameters:
args - Arguments

suite

public static junit.framework.Test suite()
Create a test suite for this test.

Returns:
a test suite

setUp

protected void setUp()
              throws Exception
Set up.

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

tearDown

protected void tearDown()
                 throws Exception
Tear Down.

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

testIssue_BEANUTILS_61_PropertyUtils_isReadable

public void testIssue_BEANUTILS_61_PropertyUtils_isReadable()
Test PropertyUtils.isReadable(Object, String) for simple properties.


testIssue_BEANUTILS_61_PropertyUtils_isWriteable

public void testIssue_BEANUTILS_61_PropertyUtils_isWriteable()
Test PropertyUtils.isWriteable(Object, String) for simple properties.


testIssue_BEANUTILS_61_PropertyUtils_isReadable_Indexed

public void testIssue_BEANUTILS_61_PropertyUtils_isReadable_Indexed()
Test PropertyUtils.isReadable(Object, String) for indexed properties.


testIssue_BEANUTILS_61_PropertyUtils_isReadable_Mapped

public void testIssue_BEANUTILS_61_PropertyUtils_isReadable_Mapped()
Test PropertyUtils.isReadable(Object, String) for mapped properties.


testIssue_BEANUTILS_61_PropertyUtils_isWriteable_Indexed

public void testIssue_BEANUTILS_61_PropertyUtils_isWriteable_Indexed()
Test PropertyUtils.isWriteable(Object, String) for indexed properties.


testIssue_BEANUTILS_61_PropertyUtils_isWriteable_Mapped

public void testIssue_BEANUTILS_61_PropertyUtils_isWriteable_Mapped()
Test PropertyUtils.isWriteable(Object, String) for mapped properties.


testIssue_BEANUTILS_61_PropertyUtils_getProperty

public void testIssue_BEANUTILS_61_PropertyUtils_getProperty()
Test PropertyUtils.getProperty(Object, String) for simple properties.


testIssue_BEANUTILS_61_PropertyUtils_setProperty

public void testIssue_BEANUTILS_61_PropertyUtils_setProperty()
Test PropertyUtils.setProperty(Object, String, Object) for simple properties.


testIssue_BEANUTILS_61_PropertyUtils_getProperty_Indexed

public void testIssue_BEANUTILS_61_PropertyUtils_getProperty_Indexed()
Test PropertyUtils.getProperty(Object, String) for indexed properties.


testIssue_BEANUTILS_61_PropertyUtils_setProperty_Indexed

public void testIssue_BEANUTILS_61_PropertyUtils_setProperty_Indexed()
Test PropertyUtils.setProperty(Object, String, Object) for indexed properties.


testIssue_BEANUTILS_61_PropertyUtils_getProperty_Mapped

public void testIssue_BEANUTILS_61_PropertyUtils_getProperty_Mapped()
Test PropertyUtils.getProperty(Object, String) for mapped properties.


testIssue_BEANUTILS_61_PropertyUtils_setProperty_Mapped

public void testIssue_BEANUTILS_61_PropertyUtils_setProperty_Mapped()
Test PropertyUtils.setProperty(Object, String, Object) for mapped properties.


testIssue_BEANUTILS_61_PropertyUtils_copyProperties_to_WrapDynaBean

public void testIssue_BEANUTILS_61_PropertyUtils_copyProperties_to_WrapDynaBean()
Test PropertyUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.


testIssue_BEANUTILS_61_PropertyUtils_copyProperties_from_WrapDynaBean

public void testIssue_BEANUTILS_61_PropertyUtils_copyProperties_from_WrapDynaBean()
Test PropertyUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.


testIssue_BEANUTILS_61_BeanUtils_copyProperties_to_WrapDynaBean

public void testIssue_BEANUTILS_61_BeanUtils_copyProperties_to_WrapDynaBean()
Test BeanUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.


testIssue_BEANUTILS_61_BeanUtils_copyProperties_from_WrapDynaBean

public void testIssue_BEANUTILS_61_BeanUtils_copyProperties_from_WrapDynaBean()
Test BeanUtils.copyProperties(Object, Object) to a read-only WrapDynaBean property.



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