commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r815700 - /commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestCollectionUtils.java
Date Wed, 16 Sep 2009 10:04:49 GMT
Author: sebb
Date: Wed Sep 16 10:04:49 2009
New Revision: 815700

URL: http://svn.apache.org/viewvc?rev=815700&view=rev
Log:
Avoid ambiguous reference to assertEquals(double, double)

Modified:
    commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestCollectionUtils.java

Modified: commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestCollectionUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestCollectionUtils.java?rev=815700&r1=815699&r2=815700&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestCollectionUtils.java
(original)
+++ commons/proper/collections/trunk/src/test/org/apache/commons/collections/TestCollectionUtils.java
Wed Sep 16 10:04:49 2009
@@ -322,11 +322,11 @@
 
         Collection<Number> col2 = CollectionUtils.disjunction(collectionC2, collectionA);
         Map<Number, Integer> freq2 = CollectionUtils.getCardinalityMap(col2);
-        assertEquals(1, freq2.get(1));
-        assertEquals(2, freq2.get(2));
+        assertEquals(Integer.valueOf(1), freq2.get(1));
+        assertEquals(Integer.valueOf(2), freq2.get(2));
         assertNull(freq2.get(3));
-        assertEquals(2, freq2.get(4));
-        assertEquals(1, freq2.get(5));
+        assertEquals(Integer.valueOf(2), freq2.get(4));
+        assertEquals(Integer.valueOf(1), freq2.get(5));
     }
 
     @Test
@@ -349,18 +349,18 @@
     public void testSubtract() {
         Collection<Integer> col = CollectionUtils.subtract(iterableA, iterableC);
         Map<Integer, Integer> freq = CollectionUtils.getCardinalityMap(col);
-        assertEquals(1, freq.get(1));
+        assertEquals(Integer.valueOf(1), freq.get(1));
         assertNull(freq.get(2));
         assertNull(freq.get(3));
-        assertEquals(2, freq.get(4));
+        assertEquals(Integer.valueOf(2), freq.get(4));
         assertNull(freq.get(5));
 
         Collection<Number> col2 = CollectionUtils.subtract(collectionC2, collectionA);
         Map<Number, Integer> freq2 = CollectionUtils.getCardinalityMap(col2);
-        assertEquals(1, freq2.get(5));
+        assertEquals(Integer.valueOf(1), freq2.get(5));
         assertNull(freq2.get(4));
         assertNull(freq2.get(3));
-        assertEquals(2, freq2.get(2));
+        assertEquals(Integer.valueOf(2), freq2.get(2));
         assertNull(freq2.get(1));
     }
 



Mime
View raw message