use of org.opennms.netmgt.poller.remote.PollerBackEnd in project opennms by OpenNMS.
the class ServerUnreachableAdaptorTest method testPollerStartingWhenBackEndReturnsFalse.
public void testPollerStartingWhenBackEndReturnsFalse() {
String id = UUID.randomUUID().toString();
Map<String, String> details = new HashMap<String, String>();
PollerBackEnd backEnd = createMock(PollerBackEnd.class);
expect(backEnd.pollerStarting(id, details)).andReturn(false);
ServerUnreachableAdaptor adaptor = new ServerUnreachableAdaptor();
adaptor.setRemoteBackEnd(backEnd);
replay(backEnd);
adaptor.pollerStarting(id, details);
verify(backEnd);
}
Aggregations