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