@Test public void testSetConstraintValueType() { final String type = "string"; final String placeholder = "placeholder"; when(placeholderHelper.getPlaceholderSample(type)).thenReturn(placeholder); enumerationItem.setConstraintValueType(type); verify(view).setPlaceholder(placeholder); verify(view).setComponentSelector(type); }
public void setConstraintValueType(final String constraintValueType) { view.setComponentSelector(constraintValueType); view.setPlaceholder(placeholderHelper.getPlaceholderSample(constraintValueType)); }
DataTypeConstraintEnumerationItem { public void setConstraintValueType(final String constraintValueType) { view.setComponentSelector(constraintValueType); view.setPlaceholder(placeholderHelper.getPlaceholderSample(constraintValueType)); } }
DataTypeConstraintEnumerationItem { public void setConstraintValueType(final String constraintValueType) { view.setComponentSelector(constraintValueType); view.setPlaceholder(placeholderHelper.getPlaceholderSample(constraintValueType)); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); }
DataTypeConstraintEnumerationItem { public void setConstraintValueType(final String constraintValueType) { view.setComponentSelector(constraintValueType); view.setPlaceholder(placeholderHelper.getPlaceholderSample(constraintValueType)); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); void setValue(final String newValue); String getValue(); int getOrder(); Element getElement(); void enableEditMode(); void disableEditMode(); void save(final String newValue); void remove(); void setDataTypeConstraintEnumeration(final DataTypeConstraintEnumeration dataTypeConstraintEnumeration); void setConstraintValueType(final String constraintValueType); void setOrder(final int order); }
DataTypeConstraintEnumerationItem { public void setConstraintValueType(final String constraintValueType) { view.setComponentSelector(constraintValueType); view.setPlaceholder(placeholderHelper.getPlaceholderSample(constraintValueType)); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); void setValue(final String newValue); String getValue(); int getOrder(); Element getElement(); void enableEditMode(); void disableEditMode(); void save(final String newValue); void remove(); void setDataTypeConstraintEnumeration(final DataTypeConstraintEnumeration dataTypeConstraintEnumeration); void setConstraintValueType(final String constraintValueType); void setOrder(final int order);  }