Don't rely on direct access to internal fields

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1477622 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2013-04-30 13:30:36 +00:00
parent 7f0046cf4e
commit 1f5e68b561
1 changed files with 5 additions and 5 deletions

View File

@ -246,7 +246,7 @@ public class ListOrderedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
lom.put(0, (K) i1, (V) "One"); lom.put(0, (K) i1, (V) "One");
assertEquals(3, lom.size()); assertEquals(3, lom.size());
assertEquals(3, lom.map.size()); assertEquals(3, lom.map.size());
assertEquals(3, lom.insertOrder.size()); assertEquals(3, lom.keyList().size());
assertEquals("One", lom.getValue(0)); assertEquals("One", lom.getValue(0));
assertSame(i1, lom.get(0)); assertSame(i1, lom.get(0));
@ -258,7 +258,7 @@ public class ListOrderedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
lom.put(0, (K) i1b, (V) "One"); lom.put(0, (K) i1b, (V) "One");
assertEquals(3, lom.size()); assertEquals(3, lom.size());
assertEquals(3, lom.map.size()); assertEquals(3, lom.map.size());
assertEquals(3, lom.insertOrder.size()); assertEquals(3, lom.keyList().size());
assertEquals("One", lom.getValue(0)); assertEquals("One", lom.getValue(0));
assertEquals("2", lom.getValue(1)); assertEquals("2", lom.getValue(1));
assertEquals("3", lom.getValue(2)); assertEquals("3", lom.getValue(2));
@ -272,7 +272,7 @@ public class ListOrderedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
lom.put(1, (K) i1b, (V) "One"); lom.put(1, (K) i1b, (V) "One");
assertEquals(3, lom.size()); assertEquals(3, lom.size());
assertEquals(3, lom.map.size()); assertEquals(3, lom.map.size());
assertEquals(3, lom.insertOrder.size()); assertEquals(3, lom.keyList().size());
assertEquals("One", lom.getValue(0)); assertEquals("One", lom.getValue(0));
assertEquals("2", lom.getValue(1)); assertEquals("2", lom.getValue(1));
assertEquals("3", lom.getValue(2)); assertEquals("3", lom.getValue(2));
@ -285,7 +285,7 @@ public class ListOrderedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
lom.put(2, (K) i1b, (V) "One"); lom.put(2, (K) i1b, (V) "One");
assertEquals(3, lom.size()); assertEquals(3, lom.size());
assertEquals(3, lom.map.size()); assertEquals(3, lom.map.size());
assertEquals(3, lom.insertOrder.size()); assertEquals(3, lom.keyList().size());
assertEquals("2", lom.getValue(0)); assertEquals("2", lom.getValue(0));
assertEquals("One", lom.getValue(1)); assertEquals("One", lom.getValue(1));
assertEquals("3", lom.getValue(2)); assertEquals("3", lom.getValue(2));
@ -298,7 +298,7 @@ public class ListOrderedMapTest<K, V> extends AbstractOrderedMapTest<K, V> {
lom.put(3, (K) i1b, (V) "One"); lom.put(3, (K) i1b, (V) "One");
assertEquals(3, lom.size()); assertEquals(3, lom.size());
assertEquals(3, lom.map.size()); assertEquals(3, lom.map.size());
assertEquals(3, lom.insertOrder.size()); assertEquals(3, lom.keyList().size());
assertEquals("2", lom.getValue(0)); assertEquals("2", lom.getValue(0));
assertEquals("3", lom.getValue(1)); assertEquals("3", lom.getValue(1));
assertEquals("One", lom.getValue(2)); assertEquals("One", lom.getValue(2));