@Test public void testSetDisallowedNames() { Set<String> names = mock(new HashSet<String>().getClass()); widget.setDisallowedNames(names, "message"); verify(view).getAssignmentWidget(0); verify(view).getAssignmentWidget(1); verify(view).getAssignmentWidget(2); verify(assignWidgetOne).setDisallowedNames(names, "message"); verify(assignWidgetTwo).setDisallowedNames(names, "message"); verify(assignWidgetThree).setDisallowedNames(names, "message"); }
public void setDisallowedNames(final Set<String> disallowedNames, final String disallowedNameErrorMessage) { this.disallowedNames = disallowedNames; this.disallowedNameErrorMessage = disallowedNameErrorMessage; for (int i = 0; i < view.getAssignmentsCount(); i++) { view.getAssignmentWidget(i).setDisallowedNames(disallowedNames, disallowedNameErrorMessage); } }
ActivityDataIOEditorWidget implements ActivityDataIOEditorWidgetView.Presenter { public void setDisallowedNames(final Set<String> disallowedNames, final String disallowedNameErrorMessage) { this.disallowedNames = disallowedNames; this.disallowedNameErrorMessage = disallowedNameErrorMessage; for (int i = 0; i < view.getAssignmentsCount(); i++) { view.getAssignmentWidget(i).setDisallowedNames(disallowedNames, disallowedNameErrorMessage); } } }
ActivityDataIOEditorWidget implements ActivityDataIOEditorWidgetView.Presenter { public void setDisallowedNames(final Set<String> disallowedNames, final String disallowedNameErrorMessage) { this.disallowedNames = disallowedNames; this.disallowedNameErrorMessage = disallowedNameErrorMessage; for (int i = 0; i < view.getAssignmentsCount(); i++) { view.getAssignmentWidget(i).setDisallowedNames(disallowedNames, disallowedNameErrorMessage); } }  }
ActivityDataIOEditorWidget implements ActivityDataIOEditorWidgetView.Presenter { public void setDisallowedNames(final Set<String> disallowedNames, final String disallowedNameErrorMessage) { this.disallowedNames = disallowedNames; this.disallowedNameErrorMessage = disallowedNameErrorMessage; for (int i = 0; i < view.getAssignmentsCount(); i++) { view.getAssignmentWidget(i).setDisallowedNames(disallowedNames, disallowedNameErrorMessage); } }  @PostConstruct void init(); @Override void handleAddClick(); void setIsSingleVar(final boolean isSingleVar); void setVariableType(final VariableType variableType); void setAllowDuplicateNames(final boolean allowDuplicateNames,
                                       final String duplicateNameErrorMessage); void removeAssignment(final AssignmentRow assignmentRow); void setData(final List<AssignmentRow> assignmentRows); List<AssignmentRow> getData(); VariableType getVariableType(); void setDataTypes(final ListBoxValues dataTypeListBoxValues); void setProcessVariables(final ListBoxValues processVarListBoxValues); void setDisallowedNames(final Set<String> disallowedNames,
                                   final String disallowedNameErrorMessage); boolean isDuplicateName(final String name); boolean isMultipleInstanceVariable(final String name); void setIsVisible(final boolean visible); Widget getWidget(); void setReadOnly(final boolean readOnly); }
ActivityDataIOEditorWidget implements ActivityDataIOEditorWidgetView.Presenter { public void setDisallowedNames(final Set<String> disallowedNames, final String disallowedNameErrorMessage) { this.disallowedNames = disallowedNames; this.disallowedNameErrorMessage = disallowedNameErrorMessage; for (int i = 0; i < view.getAssignmentsCount(); i++) { view.getAssignmentWidget(i).setDisallowedNames(disallowedNames, disallowedNameErrorMessage); } }  @PostConstruct void init(); @Override void handleAddClick(); void setIsSingleVar(final boolean isSingleVar); void setVariableType(final VariableType variableType); void setAllowDuplicateNames(final boolean allowDuplicateNames,
                                       final String duplicateNameErrorMessage); void removeAssignment(final AssignmentRow assignmentRow); void setData(final List<AssignmentRow> assignmentRows); List<AssignmentRow> getData(); VariableType getVariableType(); void setDataTypes(final ListBoxValues dataTypeListBoxValues); void setProcessVariables(final ListBoxValues processVarListBoxValues); void setDisallowedNames(final Set<String> disallowedNames,
                                   final String disallowedNameErrorMessage); boolean isDuplicateName(final String name); boolean isMultipleInstanceVariable(final String name); void setIsVisible(final boolean visible); Widget getWidget(); void setReadOnly(final boolean readOnly);  }