use of com.qcadoo.model.internal.types.DateTimeType in project qcadoo by qcadoo.
the class FieldTypeFactoryTest method shouldReturnDateTimeType.
@Test
public void shouldReturnDateTimeType() throws Exception {
// when
FieldType fieldType = new DateTimeType();
// then
assertEquals(Date.class, fieldType.getType());
assertTrue(fieldType.toObject(fieldDefinition, new Date()).isValid());
}
Aggregations