org.apache.commons.beanutils.bugs
Class Jira347TestCase

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

public class Jira347TestCase
extends junit.framework.TestCase

Test case for Jira issue# BEANUTILS-347.
See https://issues.apache.org/jira/browse/BEANUTILS-347

Version:
$Revision: 806915 $ $Date: 2009-08-23 01:50:23 +0100 (Sun, 23 Aug 2009) $

Constructor Summary
Jira347TestCase()
           
 
Method Summary
 void testMappedPropertyDescriptor_AnyArgsProperty()
          Tests that MappedPropertyDescriptor does not throw an exception while re-creating a Method reference after it has been garbage collected under the following circumstances.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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

Jira347TestCase

public Jira347TestCase()
Method Detail

testMappedPropertyDescriptor_AnyArgsProperty

public void testMappedPropertyDescriptor_AnyArgsProperty()
                                                  throws Exception
Tests that MappedPropertyDescriptor does not throw an exception while re-creating a Method reference after it has been garbage collected under the following circumstances. - a class has a property 'mappedProperty' - there is no getter for this property - there is method setMappedProperty(MappedPropertyTestBean,MappedPropertyTestBean) In this case getMappedWriteMethod should not throw an exception after the method reference has been garbage collected. It is essential that in both cases the same method is returned or in both cases null. If the constructor of the MappedPropertyDescriptor would recognize the situation (of the first param not being of type String) this would be fine as well.

Throws:
Exception


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