@Test public void doSave() { tested.doSave(); final ArgumentCaptor<List> rolesCaptor = ArgumentCaptor.forClass(List.class); verify(presenter).serialize(rolesCaptor.capture()); assertThat(rolesCaptor.getValue()).isEqualTo(roles); verify(tested).setValue(SERIALIZED_ROLE, true); }
@Override public void doSave() { presenter.map(p -> p.serialize(removeEmptyRoles(getRows()))).ifPresent(newValue -> setValue(newValue, true)); }
RolesEditorWidgetViewImpl extends Composite implements RolesEditorWidgetView,
                                                                    HasValue<String> { @Override public void doSave() { presenter.map(p -> p.serialize(removeEmptyRoles(getRows()))).ifPresent(newValue -> setValue(newValue, true)); } }
RolesEditorWidgetViewImpl extends Composite implements RolesEditorWidgetView,
                                                                    HasValue<String> { @Override public void doSave() { presenter.map(p -> p.serialize(removeEmptyRoles(getRows()))).ifPresent(newValue -> setValue(newValue, true)); } RolesEditorWidgetViewImpl(); }
RolesEditorWidgetViewImpl extends Composite implements RolesEditorWidgetView,
                                                                    HasValue<String> { @Override public void doSave() { presenter.map(p -> p.serialize(removeEmptyRoles(getRows()))).ifPresent(newValue -> setValue(newValue, true)); } RolesEditorWidgetViewImpl(); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override void doSave(); @Override void notifyModelChanged(); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); @Override void init(final Presenter presenter); @Override void setReadOnly(final boolean readOnly); @Override int getRowsCount(); @Override void setRows(final List<KeyValueRow> rows); @Override List<KeyValueRow> getRows(); @Override RolesListItemWidgetView getWidget(int index); @Override void remove(final KeyValueRow row); @Override boolean isDuplicateName(String name); }
RolesEditorWidgetViewImpl extends Composite implements RolesEditorWidgetView,
                                                                    HasValue<String> { @Override public void doSave() { presenter.map(p -> p.serialize(removeEmptyRoles(getRows()))).ifPresent(newValue -> setValue(newValue, true)); } RolesEditorWidgetViewImpl(); @Override String getValue(); @Override void setValue(final String value); @Override void setValue(final String value,
                         final boolean fireEvents); @Override void doSave(); @Override void notifyModelChanged(); @Override HandlerRegistration addValueChangeHandler(final ValueChangeHandler<String> handler); @Override void init(final Presenter presenter); @Override void setReadOnly(final boolean readOnly); @Override int getRowsCount(); @Override void setRows(final List<KeyValueRow> rows); @Override List<KeyValueRow> getRows(); @Override RolesListItemWidgetView getWidget(int index); @Override void remove(final KeyValueRow row); @Override boolean isDuplicateName(String name);  }