From 0ec653ec42dd2e81de51614753c5cbfad0d814b8 Mon Sep 17 00:00:00 2001 From: Thomas Neidhart Date: Mon, 1 Jun 2015 22:28:43 +0000 Subject: [PATCH] Update unit test after method changes. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1683014 13f79535-47bb-0310-9956-ffa450edef68 --- .../collections4/MultiMapUtilsTest.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java b/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java index 685ca6927..865052559 100644 --- a/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java +++ b/src/test/java/org/apache/commons/collections4/MultiMapUtilsTest.java @@ -105,8 +105,8 @@ public class MultiMapUtilsTest { } @Test - public void testGetList() { - assertNull(MultiMapUtils.getList(null, "key1")); + public void testGetValuesAsList() { + assertNull(MultiMapUtils.getValuesAsList(null, "key1")); String values[] = { "v1", "v2", "v3" }; final MultiValuedMap map = new MultiValuedHashMap(); @@ -114,7 +114,7 @@ public class MultiMapUtilsTest { map.put("key1", val); } - List list = MultiMapUtils.getList(map, "key1"); + List list = MultiMapUtils.getValuesAsList(map, "key1"); int i = 0; for (String val : list) { assertTrue(val.equals(values[i++])); @@ -122,8 +122,8 @@ public class MultiMapUtilsTest { } @Test - public void testGetSet() { - assertNull(MultiMapUtils.getList(null, "key1")); + public void testGetValuesAsSet() { + assertNull(MultiMapUtils.getValuesAsList(null, "key1")); String values[] = { "v1", "v2", "v3" }; final MultiValuedMap map = new MultiValuedHashMap(); @@ -132,7 +132,7 @@ public class MultiMapUtilsTest { map.put("key1", val); } - Set set = MultiMapUtils.getSet(map, "key1"); + Set set = MultiMapUtils.getValuesAsSet(map, "key1"); assertEquals(3, set.size()); for (String val : values) { assertTrue(set.contains(val)); @@ -140,8 +140,8 @@ public class MultiMapUtilsTest { } @Test - public void testGetBag() { - assertNull(MultiMapUtils.getBag(null, "key1")); + public void testGetValuesAsBag() { + assertNull(MultiMapUtils.getValuesAsBag(null, "key1")); String values[] = { "v1", "v2", "v3" }; final MultiValuedMap map = new MultiValuedHashMap(); @@ -150,7 +150,7 @@ public class MultiMapUtilsTest { map.put("key1", val); } - Bag bag = MultiMapUtils.getBag(map, "key1"); + Bag bag = MultiMapUtils.getValuesAsBag(map, "key1"); assertEquals(6, bag.size()); for (String val : values) { assertTrue(bag.contains(val));