@Test
 public void testPutRemoveGetShouldReturnNullWhenQuorumSizeMet() {
   cache1.put(123, "foo");
   cache1.remove(123);
   assertNull(cache2.get(123));
 }
 @Test
 public void testRemoveOperationSuccessfulWhenQuorumSizeMet() {
   cache1.remove(1);
 }
 @Test(expected = QuorumException.class)
 public void testRemoveOperationThrowsExceptionWhenQuorumSizeNotMet() {
   cache4.remove(1);
 }
예제 #4
0
 @Override
 public boolean delete(K key) {
   return cache.remove(key);
 }