use of com.qcadoo.model.internal.types.PriorityType in project qcadoo by qcadoo.
the class FieldTypeFactoryTest method shouldReturnPriorityType.
@Test
public void shouldReturnPriorityType() throws Exception {
// given
FieldDefinition fieldDefinition = new FieldDefinitionImpl(null, "aaa");
// when
FieldType fieldType = new PriorityType(fieldDefinition);
// then
assertEquals(Integer.class, fieldType.getType());
assertTrue(fieldType.toObject(fieldDefinition, 1).isValid());
assertEquals(fieldDefinition, ((PriorityType) fieldType).getScopeFieldDefinition());
}
Aggregations