use of org.openmrs.customdatatype.datatype.LocationDatatype in project openmrs-core by openmrs.
the class DatatypeServiceTest method getHandler_shouldReturnAHandlerForADatatypeThatExtendsAGenericSuperclass.
/**
* @see DatatypeService#getHandler(CustomDatatype,String)
*/
@Test
public void getHandler_shouldReturnAHandlerForADatatypeThatExtendsAGenericSuperclass() {
DatatypeService service = Context.getDatatypeService();
CustomDatatype locationDatatype = CustomDatatypeUtil.getDatatype(LocationDatatype.class.getName(), null);
Assert.assertEquals(LocationDatatypeHandler.class, service.getHandler(locationDatatype, null).getClass());
}
Aggregations