commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nia...@apache.org
Subject svn commit: r539941 - /jakarta/commons/proper/beanutils/trunk/optional/bean-collections/src/test/org/apache/commons/beanutils/BeanComparatorTestCase.java
Date Sun, 20 May 2007 21:12:49 GMT
Author: niallp
Date: Sun May 20 14:12:48 2007
New Revision: 539941

URL: http://svn.apache.org/viewvc?view=rev&rev=539941
Log:
java.lang.Boolean implements Comparable from JDK 1.5 onwards - so comparing boolean properties
no longer fails

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=539941&r1=539940&r2=539941
==============================================================================
--- 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
Sun May 20 14:12:48 2007
@@ -210,7 +210,9 @@
           beanComparator = new BeanComparator("booleanProperty");
           beanComparator.compare(testBeanA, testBeanB);
 
-          fail("BeanComparator should throw an exception when comparing two booleans.");
+          // **** java.lang.Boolean implements Comparable from JDK 1.5 onwards
+          //      so this test no longer fails
+          // fail("BeanComparator should throw an exception when comparing two booleans.");
 
         }
         catch (ClassCastException cce){



---------------------------------------------------------------------
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