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