コード例 #1
0
 @Test(expected = ExecutionException.class)
 public void testRemoveAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
   Future<Boolean> foo = cache4.removeAsync(1);
   foo.get();
 }
コード例 #2
0
 @Test
 public void testRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
   Future<Boolean> foo = cache1.removeAsync(1);
   foo.get();
 }