コード例 #1
0
 @Test(expected = QuorumException.class)
 public void testPutAllOperationThrowsExceptionWhenQuorumSizeNotMet() {
   HashMap<Integer, String> hashMap = new HashMap<Integer, String>();
   hashMap.put(123, "");
   cache4.putAll(hashMap);
 }
コード例 #2
0
 @Test
 public void testPutAllOperationSuccessfulWhenQuorumSizeMet() {
   HashMap<Integer, String> hashMap = new HashMap<Integer, String>();
   hashMap.put(123, "");
   cache1.putAll(hashMap);
 }