@Test(expected = IllegalStateException.class) public void addressAndWrongIdsTest() { shardsFactory.setAddresses("addr1:1, addr2:2"); shardsFactory.setIds("shard1"); twoAddressesTest("shard1", "shard2", 1, 1); }
@Test public void addressAndIdsTest() { shardsFactory.setAddresses("addr1:1, addr2:2"); shardsFactory.setIds("shard1, shard2"); twoAddressesTest("shard1", "shard2", 1, 1); }