Search in sources :

Example 1 with OspfLinkDao

use of org.opennms.netmgt.dao.api.OspfLinkDao in project opennms by OpenNMS.

the class EnhancedLinkdTopologyProviderTest method testDataCorrectness.

@Test
public void testDataCorrectness() {
    LldpLinkDao lldpLinkDao = m_databasePopulator.getLldpLinkDao();
    List<LldpLink> links = lldpLinkDao.findAll();
    assertEquals(16, links.size());
    OspfLinkDao ospfLinkDao = m_databasePopulator.getOspfLinkDao();
    List<OspfLink> ospfLinks = ospfLinkDao.findAll();
    assertEquals(2, ospfLinks.size());
}
Also used : OspfLinkDao(org.opennms.netmgt.dao.api.OspfLinkDao) LldpLinkDao(org.opennms.netmgt.dao.api.LldpLinkDao) LldpLink(org.opennms.netmgt.model.LldpLink) OspfLink(org.opennms.netmgt.model.OspfLink) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 LldpLinkDao (org.opennms.netmgt.dao.api.LldpLinkDao)1 OspfLinkDao (org.opennms.netmgt.dao.api.OspfLinkDao)1 LldpLink (org.opennms.netmgt.model.LldpLink)1 OspfLink (org.opennms.netmgt.model.OspfLink)1