commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r884030 - /commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/bugs/Jira369TestCase.java
Date Wed, 25 Nov 2009 10:52:23 GMT
Author: niallp
Date: Wed Nov 25 10:52:23 2009
New Revision: 884030

URL: http://svn.apache.org/viewvc?rev=884030&view=rev
Log:
Test corrections - javadocs & add fail() if NoSuchMethodException not thrown

Modified:
    commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/bugs/Jira369TestCase.java

Modified: commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/bugs/Jira369TestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/bugs/Jira369TestCase.java?rev=884030&r1=884029&r2=884030&view=diff
==============================================================================
--- commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/bugs/Jira369TestCase.java
(original)
+++ commons/proper/beanutils/trunk/src/test/org/apache/commons/beanutils/bugs/Jira369TestCase.java
Wed Nov 25 10:52:23 2009
@@ -76,7 +76,7 @@
     }
 
     /**
-     * Test {@link BeanUtils} setProperty() for property "aRatedCd".
+     * Test {@link BeanUtils} getProperty() for property "aRatedCd".
      */
     public void testBeanUtilsGetProperty_aRatedCd() throws Exception {
         TestBean bean = new TestBean();
@@ -84,6 +84,7 @@
 
         try {
             assertEquals("foo", BeanUtils.getProperty(bean, "aRatedCd"));
+            fail("Expected NoSuchMethodException");
         } catch (NoSuchMethodException e) {
             // expected result
         } catch (Exception e) {
@@ -92,7 +93,7 @@
     }
 
     /**
-     * Test {@link BeanUtils} setProperty() for property "ARatedCd".
+     * Test {@link BeanUtils} getProperty() for property "ARatedCd".
      */
     public void testBeanUtilsGetProperty_ARatedCd() throws Exception {
         TestBean bean = new TestBean();
@@ -105,7 +106,7 @@
     }
 
     /**
-     * Test {@link BeanUtils} setProperty() for property "bRatedCd".
+     * Test {@link BeanUtils} getProperty() for property "bRatedCd".
      */
     public void testBeanUtilsGetProperty_bRatedCd() throws Exception {
         TestBean bean = new TestBean();



Mime
View raw message