Search in sources :

Example 1 with BooleanType

use of com.qcadoo.model.internal.types.BooleanType in project qcadoo by qcadoo.

the class FieldTypeFactoryTest method shouldReturnBooleanType.

@Test
public void shouldReturnBooleanType() throws Exception {
    // when
    FieldType fieldType = new BooleanType();
    // then
    assertEquals(Boolean.class, fieldType.getType());
    assertTrue(fieldType.toObject(fieldDefinition, false).isValid());
}
Also used : BooleanType(com.qcadoo.model.internal.types.BooleanType) FieldType(com.qcadoo.model.api.types.FieldType) DataAccessTest(com.qcadoo.model.internal.DataAccessTest) Test(org.junit.Test)

Aggregations

FieldType (com.qcadoo.model.api.types.FieldType)1 DataAccessTest (com.qcadoo.model.internal.DataAccessTest)1 BooleanType (com.qcadoo.model.internal.types.BooleanType)1 Test (org.junit.Test)1