use of org.opennms.netmgt.dao.mock.EventAnticipator in project opennms by OpenNMS.
the class RequisitionRestServiceIT method testImportNoRescan.
@Test
public void testImportNoRescan() throws Exception {
createRequisition();
EventAnticipator anticipator = m_eventProxy.getEventAnticipator();
sendRequest(PUT, "/requisitions/test/import", parseParamData("rescanExisting=false"), 202);
assertEquals(1, anticipator.getUnanticipatedEvents().size());
final Event event = anticipator.getUnanticipatedEvents().iterator().next();
final List<Parm> parms = event.getParmCollection();
assertEquals(2, parms.size());
assertEquals("false", parms.get(1).getValue().getContent());
}
Aggregations