You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rw...@apache.org on 2002/12/09 23:17:12 UTC

cvs commit: jakarta-commons/beanutils/src/test/org/apache/commons/beanutils BeanUtilsTestCase.java

rwaldhoff    2002/12/09 14:17:12

  Modified:    beanutils/src/test/org/apache/commons/beanutils
                        BeanUtilsTestCase.java
  Log:
  add test case similiar to that described at
  http://issues.apache.org/bugzilla/show_bug.cgi?id=15170
  
  Revision  Changes    Path
  1.15      +11 -5     jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/BeanUtilsTestCase.java
  
  Index: BeanUtilsTestCase.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/beanutils/src/test/org/apache/commons/beanutils/BeanUtilsTestCase.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- BeanUtilsTestCase.java	21 Jul 2002 00:20:45 -0000	1.14
  +++ BeanUtilsTestCase.java	9 Dec 2002 22:17:12 -0000	1.15
  @@ -65,8 +65,9 @@
   import java.lang.reflect.InvocationTargetException;
   import java.util.HashMap;
   import java.util.Map;
  -import junit.framework.TestCase;
  +
   import junit.framework.Test;
  +import junit.framework.TestCase;
   import junit.framework.TestSuite;
   
   
  @@ -781,5 +782,10 @@
       }
   
   
  +    /** See http://issues.apache.org/bugzilla/show_bug.cgi?id=15170 */
  +    public void testSetPropertyOnPrimitavieWrappers() throws Exception {
  +        BeanUtils.setProperty(bean,"intProperty", new Integer(1));
  +        assertEquals(1,bean.getIntProperty());
  +    }
   }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>