Search in sources :

Example 1 with PollerBackEnd

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);
}
Also used : PollerBackEnd(org.opennms.netmgt.poller.remote.PollerBackEnd) HashMap(java.util.HashMap)

Aggregations

HashMap (java.util.HashMap)1 PollerBackEnd (org.opennms.netmgt.poller.remote.PollerBackEnd)1