use of org.opennms.netmgt.dao.mock.MockNodeDao in project opennms by OpenNMS.
the class AMQPEventReceiverBlueprintTest method addServicesOnStartup.
@SuppressWarnings("rawtypes")
@Override
protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) {
MockEventIpcManager mockEventIpcManager = new MockEventIpcManager();
services.put(EventIpcManager.class.getName(), asService(mockEventIpcManager, null));
MockNodeDao mockNodeDao = new MockNodeDao();
services.put(NodeDao.class.getName(), asService(mockNodeDao, null));
}
use of org.opennms.netmgt.dao.mock.MockNodeDao in project opennms by OpenNMS.
the class AMQPEventForwarderBlueprintTest method addServicesOnStartup.
@SuppressWarnings("rawtypes")
@Override
protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) {
MockEventIpcManager mockEventIpcManager = new MockEventIpcManager();
services.put(EventIpcManager.class.getName(), asService(mockEventIpcManager, null));
MockNodeDao mockNodeDao = new MockNodeDao();
services.put(NodeDao.class.getName(), asService(mockNodeDao, null));
}
use of org.opennms.netmgt.dao.mock.MockNodeDao in project opennms by OpenNMS.
the class EifAdapterBlueprintTest method addServicesOnStartup.
@SuppressWarnings("rawtypes")
@Override
protected void addServicesOnStartup(Map<String, KeyValueHolder<Object, Dictionary>> services) {
MockEventIpcManager mockEventIpcManager = new MockEventIpcManager();
MockNodeDao mockNodeDao = new MockNodeDao();
services.put(EventIpcManager.class.getName(), asService(mockEventIpcManager, null));
services.put(NodeDao.class.getName(), asService(mockNodeDao, null));
}
use of org.opennms.netmgt.dao.mock.MockNodeDao in project opennms by OpenNMS.
the class SnmpProtocolCollectorTest method afterPropertiesSet.
@Override
public void afterPropertiesSet() throws Exception {
BeanUtils.assertAutowiring(this);
protocolCollector.setNodeDao(new MockNodeDao());
}
Aggregations