protected void fourLeftRemovingOne(Map<String, V> map) throws InterruptedException { map.remove("one"); assertConsistencyAwareMapSize(map, 4); assertConsistencyAwareKeySetEquals(map, new TreeSet<String>(ImmutableSet.of("two", "three", "four", "five"))); }
@Test(groups = { "integration", "live" }) public void testClear() throws InterruptedException, ExecutionException, TimeoutException, IOException { String containerNameName = getContainerName(); try { Map<String, V> map = createMap(view, containerNameName); assertConsistencyAwareMapSize(map, 0); putStringWithMD5(map, "one", "apple"); assertConsistencyAwareMapSize(map, 1); map.clear(); assertConsistencyAwareMapSize(map, 0); } finally { returnContainer(containerNameName); } }