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