@Test public void testDoSave() { doCallRealMethod().when(view).doSave(); view.init(presenter); view.setValue(ATTRIBUTES); view.doSave(); verify(view, times(1)).setValue(ATTRIBUTES, false); }
@Override public void doSave() { String newValue = presenter.serializeMetaDataAttributes(getMetaDataRows()); setValue(newValue, true); }
MetaDataEditorWidgetViewImpl extends Composite implements MetaDataEditorWidgetView,
                                                                       HasValue<String> { @Override public void doSave() { String newValue = presenter.serializeMetaDataAttributes(getMetaDataRows()); setValue(newValue, true); } }
MetaDataEditorWidgetViewImpl extends Composite implements MetaDataEditorWidgetView,
                                                                       HasValue<String> { @Override public void doSave() { String newValue = presenter.serializeMetaDataAttributes(getMetaDataRows()); setValue(newValue, true); }  }
MetaDataEditorWidgetViewImpl extends Composite implements MetaDataEditorWidgetView,
                                                                       HasValue<String> { @Override public void doSave() { String newValue = presenter.serializeMetaDataAttributes(getMetaDataRows()); setValue(newValue, true); }  @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override void doSave(); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); boolean isDuplicateAttribute(final String attribute); @Override void init(final Presenter presenter); @Override void setReadOnly(final boolean readOnly); @Override int getMetaDataRowsCount(); @Override void setTableDisplayStyle(); @Override void setNoneDisplayStyle(); @Override void setMetaDataRows(final List<MetaDataRow> rows); @Override List<MetaDataRow> getMetaDataRows(); @Override MetaDataListItemWidgetView getMetaDataWidget(final int index); @EventHandler("addButton") void handleAddButton(final ClickEvent e); @Override void removeMetaData(final MetaDataRow metaDataRow); }
MetaDataEditorWidgetViewImpl extends Composite implements MetaDataEditorWidgetView,
                                                                       HasValue<String> { @Override public void doSave() { String newValue = presenter.serializeMetaDataAttributes(getMetaDataRows()); setValue(newValue, true); }  @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override void doSave(); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); boolean isDuplicateAttribute(final String attribute); @Override void init(final Presenter presenter); @Override void setReadOnly(final boolean readOnly); @Override int getMetaDataRowsCount(); @Override void setTableDisplayStyle(); @Override void setNoneDisplayStyle(); @Override void setMetaDataRows(final List<MetaDataRow> rows); @Override List<MetaDataRow> getMetaDataRows(); @Override MetaDataListItemWidgetView getMetaDataWidget(final int index); @EventHandler("addButton") void handleAddButton(final ClickEvent e); @Override void removeMetaData(final MetaDataRow metaDataRow);  }