Search in sources :

Example 1 with MockNodeDao

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));
}
Also used : MockNodeDao(org.opennms.netmgt.dao.mock.MockNodeDao) NodeDao(org.opennms.netmgt.dao.api.NodeDao) MockNodeDao(org.opennms.netmgt.dao.mock.MockNodeDao) EventIpcManager(org.opennms.netmgt.events.api.EventIpcManager) MockEventIpcManager(org.opennms.netmgt.dao.mock.MockEventIpcManager) MockEventIpcManager(org.opennms.netmgt.dao.mock.MockEventIpcManager)

Example 2 with MockNodeDao

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));
}
Also used : MockNodeDao(org.opennms.netmgt.dao.mock.MockNodeDao) NodeDao(org.opennms.netmgt.dao.api.NodeDao) MockNodeDao(org.opennms.netmgt.dao.mock.MockNodeDao) EventIpcManager(org.opennms.netmgt.events.api.EventIpcManager) MockEventIpcManager(org.opennms.netmgt.dao.mock.MockEventIpcManager) MockEventIpcManager(org.opennms.netmgt.dao.mock.MockEventIpcManager)

Example 3 with MockNodeDao

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));
}
Also used : MockNodeDao(org.opennms.netmgt.dao.mock.MockNodeDao) NodeDao(org.opennms.netmgt.dao.api.NodeDao) MockNodeDao(org.opennms.netmgt.dao.mock.MockNodeDao) EventIpcManager(org.opennms.netmgt.events.api.EventIpcManager) MockEventIpcManager(org.opennms.netmgt.dao.mock.MockEventIpcManager) MockEventIpcManager(org.opennms.netmgt.dao.mock.MockEventIpcManager)

Example 4 with MockNodeDao

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());
}
Also used : MockNodeDao(org.opennms.netmgt.dao.mock.MockNodeDao)

Aggregations

MockNodeDao (org.opennms.netmgt.dao.mock.MockNodeDao)4 NodeDao (org.opennms.netmgt.dao.api.NodeDao)3 MockEventIpcManager (org.opennms.netmgt.dao.mock.MockEventIpcManager)3 EventIpcManager (org.opennms.netmgt.events.api.EventIpcManager)3