ConstraintValueEditor extends Composite { Widget getConstraintWidget() { return constraintWidget; } ConstraintValueEditor(final BaseSingleFieldConstraint con,
                                 final CompositeFieldConstraint constraintList,
                                 final RuleModeller modeller,
                                 final EventBus eventBus,
                                 final boolean readOnly); void init(); BaseSingleFieldConstraint getConstraint(); void refresh(); void showError(); void hideError(); void setOnValueChangeCommand(Command onValueChangeCommand); void setOnTemplateValueChangeCommand(Command onTemplateValueChangeCommand);  }
@Test public void correctWidgetForStringField() { ConstraintValueEditor editor = createEditor(constraint); assertTrue(editor.getConstraintWidget() instanceof LiteralTextBox); }
@Test public void correctWidgetForStringFieldValueInList() { when(constraint.getOperator()).thenReturn("in"); ConstraintValueEditor editor = createEditor(constraint); assertTrue(editor.getConstraintWidget() instanceof LiteralTextBox); }
@Test public void correctWidgetForStringFieldValueNotInList() { when(constraint.getOperator()).thenReturn("not in"); ConstraintValueEditor editor = createEditor(constraint); assertTrue(editor.getConstraintWidget() instanceof LiteralTextBox); }