use of com.ctrip.xpipe.redis.meta.server.dcchange.impl.DefaultSentinelManager in project x-pipe by ctripcorp.
the class DefaultSentinelManagerTest method beforeDefaultSentinelManagerTest.
@Before
public void beforeDefaultSentinelManagerTest() throws Exception {
sentinelManager = new DefaultSentinelManager(dcMetaCache, getXpipeNettyClientKeyedObjectPool());
executionLog = new ExecutionLog(currentTestName());
redisMaster = new RedisMeta().setIp("127.0.0.1").setPort(port);
when(dcMetaCache.getSentinelMonitorName(getClusterId(), getShardId())).thenReturn(sentinelMonitorName);
when(dcMetaCache.getSentinel(getClusterId(), getShardId())).thenReturn(new SentinelMeta().setAddress(allSentinels));
}
Aggregations