コード例 #1
0
 @Test(expected = ExecutionException.class)
 public void testGetAndRemoveAsyncOperationThrowsExceptionWhenQuorumSizeNotMet() throws Exception {
   Future<String> foo = cache4.getAndRemoveAsync(1);
   foo.get();
 }
コード例 #2
0
 @Test
 public void testGetAndRemoveAsyncOperationSuccessfulWhenQuorumSizeMet() throws Exception {
   Future<String> foo = cache1.getAndRemoveAsync(1);
   foo.get();
 }