commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1477622 - /commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java
Date Tue, 30 Apr 2013 13:30:36 GMT
Author: sebb
Date: Tue Apr 30 13:30:36 2013
New Revision: 1477622

URL: http://svn.apache.org/r1477622
Log:
Don't rely on direct access to internal fields

Modified:
    commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java

Modified: commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java
URL: http://svn.apache.org/viewvc/commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java?rev=1477622&r1=1477621&r2=1477622&view=diff
==============================================================================
--- commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java
(original)
+++ commons/proper/collections/trunk/src/test/java/org/apache/commons/collections4/map/ListOrderedMapTest.java
Tue Apr 30 13:30:36 2013
@@ -246,7 +246,7 @@ public class ListOrderedMapTest<K, V> ex
         lom.put(0, (K) i1, (V) "One");
         assertEquals(3, lom.size());
         assertEquals(3, lom.map.size());
-        assertEquals(3, lom.insertOrder.size());
+        assertEquals(3, lom.keyList().size());
         assertEquals("One", lom.getValue(0));
         assertSame(i1, lom.get(0));
 
@@ -258,7 +258,7 @@ public class ListOrderedMapTest<K, V> ex
         lom.put(0, (K) i1b, (V) "One");
         assertEquals(3, lom.size());
         assertEquals(3, lom.map.size());
-        assertEquals(3, lom.insertOrder.size());
+        assertEquals(3, lom.keyList().size());
         assertEquals("One", lom.getValue(0));
         assertEquals("2", lom.getValue(1));
         assertEquals("3", lom.getValue(2));
@@ -272,7 +272,7 @@ public class ListOrderedMapTest<K, V> ex
         lom.put(1, (K) i1b, (V) "One");
         assertEquals(3, lom.size());
         assertEquals(3, lom.map.size());
-        assertEquals(3, lom.insertOrder.size());
+        assertEquals(3, lom.keyList().size());
         assertEquals("One", lom.getValue(0));
         assertEquals("2", lom.getValue(1));
         assertEquals("3", lom.getValue(2));
@@ -285,7 +285,7 @@ public class ListOrderedMapTest<K, V> ex
         lom.put(2, (K) i1b, (V) "One");
         assertEquals(3, lom.size());
         assertEquals(3, lom.map.size());
-        assertEquals(3, lom.insertOrder.size());
+        assertEquals(3, lom.keyList().size());
         assertEquals("2", lom.getValue(0));
         assertEquals("One", lom.getValue(1));
         assertEquals("3", lom.getValue(2));
@@ -298,7 +298,7 @@ public class ListOrderedMapTest<K, V> ex
         lom.put(3, (K) i1b, (V) "One");
         assertEquals(3, lom.size());
         assertEquals(3, lom.map.size());
-        assertEquals(3, lom.insertOrder.size());
+        assertEquals(3, lom.keyList().size());
         assertEquals("2", lom.getValue(0));
         assertEquals("3", lom.getValue(1));
         assertEquals("One", lom.getValue(2));



Mime
View raw message