use of com.twitter.common.net.pool.DynamicHostSet.MonitorException in project commons by twitter.
the class CompoundServerSetTest method testMonitorFailure.
@Test(expected = MonitorException.class)
public void testMonitorFailure() throws Exception {
serverSet1.watch(EasyMock.<HostChangeMonitor<ServiceInstance>>anyObject());
expectLastCall().andThrow(new MonitorException("Monitor exception", null));
control.replay();
compoundServerSet.watch(compoundMonitor);
}
Aggregations