commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r498104 - /jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java
Date Sat, 20 Jan 2007 11:49:16 GMT
Author: niallp
Date: Sat Jan 20 03:49:15 2007
New Revision: 498104

URL: http://svn.apache.org/viewvc?view=rev&rev=498104
Log:
Fix BeanComparatorTestCase - isn't throwing a ClassCastException any more

Modified:
    jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java

Modified: jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java
URL: http://svn.apache.org/viewvc/jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java?view=diff&rev=498104&r1=498103&r2=498104
==============================================================================
--- jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java
(original)
+++ jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java
Sat Jan 20 03:49:15 2007
@@ -191,11 +191,8 @@
 
 
         }
-        catch (ClassCastException cce){
-          assertTrue("Wrong exception was thrown.",cce.toString().indexOf("Unknown property")
> -1);
-        }
         catch (Exception e) {
-            fail("Exception" + e);
+          assertTrue("Wrong exception was thrown: " + e, e.toString().indexOf("Unknown property")
> -1);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message