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