use of org.opennms.netmgt.model.ResourceId in project opennms by OpenNMS.
the class DefaultResourceDaoTest method testGetResourceNoNode.
@Test
public void testGetResourceNoNode() throws Exception {
ResourceId resourceId = ResourceId.get("node", "1").resolve("nodeSnmp", "");
expect(m_nodeDao.get("1")).andReturn(null);
m_easyMockUtils.replayAll();
m_resourceDao.getResourceById(resourceId);
m_easyMockUtils.verifyAll();
}
Aggregations