use of org.openmrs.api.handler.ExistingVisitAssignmentHandler in project openmrs-core by openmrs.
the class EncounterServiceTest method getVisitAssignmentHandlers_shouldReturnTheExistingVisitOnlyAssignmentHandler.
/**
* @see EncounterService#getVisitAssignmentHandlers()
*/
@Test
public void getVisitAssignmentHandlers_shouldReturnTheExistingVisitOnlyAssignmentHandler() {
List<EncounterVisitHandler> handlers = Context.getEncounterService().getEncounterVisitHandlers();
boolean found = false;
for (EncounterVisitHandler handler : handlers) {
if (handler instanceof ExistingVisitAssignmentHandler) {
found = true;
break;
}
}
Assert.assertTrue("The 'existing visit only assignment' handler was not found", found);
}
Aggregations