@Test public void testRemove() { final List<DataTypeConstraintEnumerationItem> enumerationItems = spy(new ArrayList<>()); when(dataTypeConstraintEnumeration.getEnumerationItems()).thenReturn(enumerationItems); enumerationItem.remove(); verify(enumerationItems).remove(enumerationItem); verify(dataTypeConstraintEnumeration).refreshView(); }
public void remove() { getEnumerationItems().remove(this); refreshEnumerationList(); }
DataTypeConstraintEnumerationItem { public void remove() { getEnumerationItems().remove(this); refreshEnumerationList(); } }
DataTypeConstraintEnumerationItem { public void remove() { getEnumerationItems().remove(this); refreshEnumerationList(); } @Inject  DataTypeConstraintEnumerationItem(final View view,
                                             final ConstraintPlaceholderHelper placeholderHelper); }
DataTypeConstraintEnumerationItem { public void remove() { getEnumerationItems().remove(this); refreshEnumerationList(); } @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 remove() { getEnumerationItems().remove(this); refreshEnumerationList(); } @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);  }