use of com.ctrip.xpipe.redis.core.entity.KeeperTransMeta in project x-pipe by ctripcorp.
the class KeeperContainerServiceTest method testAddKeeperWithSamePortMultipleTimes.
@Test(expected = RedisKeeperRuntimeException.class)
public void testAddKeeperWithSamePortMultipleTimes() throws Exception {
String anotherShard = "anotherShard";
KeeperMeta anotherKeeperMeta = new KeeperMeta();
anotherKeeperMeta.setPort(somePort);
KeeperTransMeta anotherKeeperTransMeta = new KeeperTransMeta();
anotherKeeperTransMeta.setKeeperMeta(anotherKeeperMeta);
anotherKeeperTransMeta.setClusterId(someCluster);
anotherKeeperTransMeta.setShardId(anotherShard);
keeperContainerService.add(someKeeperTransMeta);
keeperContainerService.add(anotherKeeperTransMeta);
}
Aggregations