use of org.hisp.dhis.dxf2.events.importer.shared.ImmutableEvent in project dhis2-core by dhis2.
the class EventBaseCheckTest method verifyErrorOnMissingProgramInstance.
@Test
void verifyErrorOnMissingProgramInstance() {
event.setEvent(event.getUid());
ImportSummary importSummary = rule.check(new ImmutableEvent(event), workContext);
assertHasError(importSummary, event, null);
assertHasConflict(importSummary, event, "No program instance found for event: " + event.getEvent());
}
Aggregations