Search in sources :

Example 1 with DateDatatype

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());
}
Also used : CustomDatatype(org.openmrs.customdatatype.CustomDatatype) DateDatatype(org.openmrs.customdatatype.datatype.DateDatatype) Test(org.junit.Test) BaseContextSensitiveTest(org.openmrs.test.BaseContextSensitiveTest)

Aggregations

Test (org.junit.Test)1 CustomDatatype (org.openmrs.customdatatype.CustomDatatype)1 DateDatatype (org.openmrs.customdatatype.datatype.DateDatatype)1 BaseContextSensitiveTest (org.openmrs.test.BaseContextSensitiveTest)1