@Test(groups = { "integration", "live" }) public void testRemove() throws InterruptedException, ExecutionException, TimeoutException, IOException { String bucketName = getContainerName(); try { Map<String, Blob> map = createMap(view, bucketName); putStringWithMD5(map, "one", "two"); assertConsistencyAwareContentEquals(map, "one", "two"); // TODO track how often this occurs and potentially update map implementation assertConsistencyAwareRemoveEquals(map, "one", null); assertConsistencyAwareGetEquals(map, "one", null); assertConsistencyAwareKeySize(map, 0); } finally { returnContainer(bucketName); } }
@Test(groups = { "integration", "live" }) public void testContains() throws InterruptedException, ExecutionException, TimeoutException, IOException { String bucketName = getContainerName(); try { Map<String, Blob> map = createMap(view, bucketName); putStringWithMD5(map, "one", "apple"); Blob blob = view.getBlobStore().blobBuilder("one").payload("apple").calculateMD5().build(); assertConsistencyAwareContainsValue(map, blob); } finally { returnContainer(bucketName); } }