Search in sources :

Example 1 with PollerService

use of org.opennms.web.svclayer.api.PollerService in project opennms by OpenNMS.

the class DefaultPollServiceIntegrationIT method testPollMonitoredService.

/**
     * this is a feature that has not been written yet
     */
@Test
@Ignore
public void testPollMonitoredService() {
    final PollerService api = createMock(PollerService.class);
    ((DefaultDemandPollService) m_demandPollService).setPollerAPI(api);
    final DemandPoll poll = m_demandPollService.pollMonitoredService(1, addr("192.168.2.100"), 1, 1);
    assertNotNull("DemandPoll should not be null", poll);
    assertTrue("Polled service addr doesn't match...", poll.getId() >= 1);
}
Also used : DemandPoll(org.opennms.netmgt.model.DemandPoll) DefaultDemandPollService(org.opennms.web.svclayer.support.DefaultDemandPollService) PollerService(org.opennms.web.svclayer.api.PollerService) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 DemandPoll (org.opennms.netmgt.model.DemandPoll)1 PollerService (org.opennms.web.svclayer.api.PollerService)1 DefaultDemandPollService (org.opennms.web.svclayer.support.DefaultDemandPollService)1