use of org.opennms.netmgt.config.DefaultServiceMonitorLocator in project opennms by OpenNMS.
the class PollerFrontEndTest method anticipatePollServiceSetMonitorLocators.
private void anticipatePollServiceSetMonitorLocators() {
ServiceMonitorLocator locator = new DefaultServiceMonitorLocator("HTTP", ServiceMonitor.class);
Set<ServiceMonitorLocator> locators = Collections.singleton(locator);
expect(m_backEnd.getServiceMonitorLocators(DistributionContext.REMOTE_MONITOR)).andReturn(locators);
m_pollService.setServiceMonitorLocators(locators);
}
Aggregations