use of com.qcadoo.model.internal.types.BelongsToEntityType in project qcadoo by qcadoo.
the class FieldTypeFactoryTest method shouldReturnBelongToType.
@Test
public void shouldReturnBelongToType() throws Exception {
// when
FieldType fieldType = new BelongsToEntityType("parent", "entity", dataDefinitionService, false, true);
// then
assertEquals(Object.class, fieldType.getType());
assertTrue(fieldType.toObject(fieldDefinition, new DefaultEntity(dataDefinition)).isValid());
}
Aggregations