@@ -0,0 +1,1105 @@
+package org.arp.javautil.collections;%0A%0Aimport java.util.ArrayList;%0Aimport java.util.HashMap;%0Aimport java.util.List;%0Aimport java.util.Map;%0Aimport junit.framework.TestCase;%0A%0A/**%0A * Tests for %7B@link Collections#putList%7D.%0A * %0A * @author Andrew Post%0A */%0Apublic class PutListTest extends TestCase %7B%0A    public void testPutIntoEmptyMap() %7B%0A        Map%3CString, List%3CString%3E%3E testMap =%0A                new HashMap%3CString, List%3CString%3E%3E();%0A        Collections.putList(testMap, %22foo%22, %22bar%22);%0A        List%3CString%3E expected = new ArrayList%3CString%3E();%0A        expected.add(%22bar%22);%0A        assertEquals(expected, testMap.get(%22foo%22));%0A    %7D%0A%0A    public void testAddToListInMap() %7B%0A        Map%3CString, List%3CString%3E%3E testMap =%0A                new HashMap%3CString, List%3CString%3E%3E();%0A        List%3CString%3E value = new ArrayList%3CString%3E();%0A        value.add(%22bar%22);%0A        testMap.put(%22foo%22, value);%0A        Collections.putList(testMap, %22foo%22, %22baz%22);%0A        List%3CString%3E expected = new ArrayList%3CString%3E();%0A        expected.add(%22bar%22);%0A        expected.add(%22baz%22);%0A        assertEquals(expected, testMap.get(%22foo%22));%0A    %7D%0A%7D%0A

Test cases for Collections.putList.