@Test public void isDuplicateName() { when(widget.isDuplicateName(ROLE_NAME)).thenReturn(true); final boolean duplicated = tested.isDuplicateName(ROLE_NAME); verify(widget).isDuplicateName(ROLE_NAME); assertThat(duplicated).isTrue(); }
@Override public boolean isDuplicateName(final String name) { return parentWidget.map(p -> p.isDuplicateName(name)).orElse(false); }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public boolean isDuplicateName(final String name) { return parentWidget.map(p -> p.isDuplicateName(name)).orElse(false); } }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public boolean isDuplicateName(final String name) { return parentWidget.map(p -> p.isDuplicateName(name)).orElse(false); } protected  RolesListItemWidgetViewImpl(); }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public boolean isDuplicateName(final String name) { return parentWidget.map(p -> p.isDuplicateName(name)).orElse(false); } protected  RolesListItemWidgetViewImpl(); void setParentWidget(final RolesEditorWidgetView parentWidget); @PostConstruct void init(); @Override VariableType getVariableType(); @Override void setReadOnly(final boolean readOnly); @Override boolean isDuplicateName(final String name); void handleDeleteButton(); @Override void notifyModelChanged(); @Override void setValue(KeyValueRow value); @Override KeyValueRow getValue(); @Override KeyValueRow getModel(); @Override void setModel(KeyValueRow model); }
RolesListItemWidgetViewImpl implements RolesListItemWidgetView,
                                                    IsElement { @Override public boolean isDuplicateName(final String name) { return parentWidget.map(p -> p.isDuplicateName(name)).orElse(false); } protected  RolesListItemWidgetViewImpl(); void setParentWidget(final RolesEditorWidgetView parentWidget); @PostConstruct void init(); @Override VariableType getVariableType(); @Override void setReadOnly(final boolean readOnly); @Override boolean isDuplicateName(final String name); void handleDeleteButton(); @Override void notifyModelChanged(); @Override void setValue(KeyValueRow value); @Override KeyValueRow getValue(); @Override KeyValueRow getModel(); @Override void setModel(KeyValueRow model); static final String INVALID_CHARACTERS_MESSAGE; }