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