@Test public void testDiscardEditMode() { final String value = "123"; doReturn(value).when(enumerationItem).getOldValue(); enumerationItem.discardEditMode(); verify(enumerationItem).setValue(value); verify(enumerationItem).disableEditMode(); }
void discardEditMode() { setValue(getOldValue()); disableEditMode(); }
DataTypeConstraintEnumerationItem { void discardEditMode() { setValue(getOldValue()); disableEditMode(); } }
DataTypeConstraintEnumerationItem { void discardEditMode() { setValue(getOldValue()); disableEditMode(); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); }
DataTypeConstraintEnumerationItem { void discardEditMode() { setValue(getOldValue()); disableEditMode(); } @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 { void discardEditMode() { setValue(getOldValue()); disableEditMode(); } @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);  }