Exemple #1
0
 @Test(expected = IllegalStateException.class)
 public void addressAndWrongWeightTest() {
   shardsFactory.setAddresses("addr1:1, addr2:2");
   shardsFactory.setWeights("2");
   twoAddressesTest("addr1:1", "addr2:2", 2, 5);
 }
Exemple #2
0
 @Test
 public void addressAndWeightTest() {
   shardsFactory.setAddresses("addr1:1, addr2:2");
   shardsFactory.setWeights("2, 5");
   twoAddressesTest("addr1:1", "addr2:2", 2, 5);
 }