commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwaldh...@apache.org
Subject cvs commit: jakarta-commons/beanutils/src/test/org/apache/commons/beanutils BeanUtilsTestCase.java
Date Mon, 09 Dec 2002 22:17:12 GMT
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message