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