@Override @Test(groups = { "integration", "live" }) public void testPutAll() throws InterruptedException { String containerName = getContainerName(); try { Map<String, InputStream> map = createMap(view, containerName); map.putAll(this.fiveInputs); assertConsistencyAwareMapSize(map, 5); assertConsistencyAwareKeySetEquals(map, new TreeSet<String>(fiveInputs.keySet())); fourLeftRemovingOne(map); } finally { returnContainer(containerName); } }
@Test(groups = { "integration", "live" }) public void testPutAllStrings() throws InterruptedException { String containerName = getContainerName(); try { Map<String, InputStream> map = createMap(view, containerName); ((InputStreamMap) map).putAllStrings(this.fiveStrings); assertConsistencyAwareMapSize(map, 5); assertConsistencyAwareKeySetEquals(map, new TreeSet<String>(fiveStrings.keySet())); fourLeftRemovingOne(map); } finally { returnContainer(containerName); } }
@Test(groups = { "integration", "live" }) public void testPutAllBytes() throws InterruptedException { String containerName = getContainerName(); try { Map<String, InputStream> map = createMap(view, containerName); ((InputStreamMap) map).putAllBytes(this.fiveBytes); assertConsistencyAwareMapSize(map, 5); assertConsistencyAwareKeySetEquals(map, new TreeSet<String>(fiveBytes.keySet())); fourLeftRemovingOne(map); } finally { returnContainer(containerName); } }
@Test(groups = { "integration", "live" }) public void testPutAllFiles() throws InterruptedException { String containerName = getContainerName(); try { Map<String, InputStream> map = createMap(view, containerName); ((InputStreamMap) map).putAllFiles(this.fiveFiles); assertConsistencyAwareMapSize(map, 5); assertConsistencyAwareKeySetEquals(map, new TreeSet<String>(fiveFiles.keySet())); fourLeftRemovingOne(map); } finally { returnContainer(containerName); } }