use of com.ctrip.xpipe.redis.console.model.KeepercontainerTbl in project x-pipe by ctripcorp.
the class KeepercontainerServiceImplTest method testAddKeeperContainer2.
@Test
public void testAddKeeperContainer2() {
KeeperContainerCreateInfo createInfo = new KeeperContainerCreateInfo().setDcName(dcNames[0]).setKeepercontainerIp("192.168.0.1").setKeepercontainerPort(9090).setKeepercontainerOrgId(3L);
keepercontainerService.addKeeperContainer(createInfo);
List<KeepercontainerTbl> result = keepercontainerService.findAllActiveByDcName(dcNames[0]);
KeepercontainerTbl target = null;
for (KeepercontainerTbl kc : result) {
if (kc.getKeepercontainerIp().equals("192.168.0.1") && kc.getKeepercontainerPort() == 9090) {
target = kc;
break;
}
}
Assert.assertNotNull(target);
}
Aggregations