use of org.openmrs.api.handler.EncounterVisitHandler in project openmrs-core by openmrs.
the class ContextTest method getRegisteredComponent_shouldReturnBeanHaveBeenRegisteredOfThePassedTypeAndName.
/**
* @see Context#getRegisteredComponent(String,Class)
*/
@Test
public void getRegisteredComponent_shouldReturnBeanHaveBeenRegisteredOfThePassedTypeAndName() {
EncounterVisitHandler registeredComponent = Context.getRegisteredComponent("existingOrNewVisitAssignmentHandler", EncounterVisitHandler.class);
Assert.assertTrue(registeredComponent instanceof ExistingOrNewVisitAssignmentHandler);
}
Aggregations