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