Search in sources :

Example 1 with NoVisitAssignmentHandler

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);
}
Also used : EncounterVisitHandler(org.openmrs.api.handler.EncounterVisitHandler) NoVisitAssignmentHandler(org.openmrs.api.handler.NoVisitAssignmentHandler) BaseContextSensitiveTest(org.openmrs.test.BaseContextSensitiveTest) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 EncounterVisitHandler (org.openmrs.api.handler.EncounterVisitHandler)1 NoVisitAssignmentHandler (org.openmrs.api.handler.NoVisitAssignmentHandler)1 BaseContextSensitiveTest (org.openmrs.test.BaseContextSensitiveTest)1