### Question:
DataTypeConstraintModal extends Elemental2Modal<DataTypeConstraintModal.View> { boolean isNone(final ConstraintType type) { return type == null || Objects.equals(type, NONE); } @Inject  DataTypeConstraintModal(final View view,
                                   final DataTypeShortcuts dataTypeShortcuts,
                                   final DataTypeConstraintEnumeration constraintEnumeration,
                                   final DataTypeConstraintExpression constraintExpression,
                                   final DataTypeConstraintRange constraintRange); @PostConstruct void setup(); void save(); void show(final BiConsumer<String, ConstraintType> onSaveConsumer); @Override void hide(); void enableOkButton(); void disableOkButton();  }### Answer:
@Test public void testIsNoneWhenConstraintTypeIsENUMERATION() { assertFalse(modal.isNone(ENUMERATION)); }
@Test public void testIsNoneWhenConstraintTypeIsNONE() { assertTrue(modal.isNone(NONE)); }
@Test public void testIsNoneWhenConstraintTypeIsNull() { assertTrue(modal.isNone(null)); }