@Test public void testGetData() { List<AssignmentRow> rows = widget.getData(); assertEquals(3, rows.size()); assertEquals(assignmentRowOne, rows.get(0)); assertEquals(assignmentRowTwo, rows.get(1)); assertEquals(assignmentRowThree, rows.get(2)); }
public List<AssignmentRow> getData() { List<AssignmentRow> rows = new ArrayList<>(); if (!view.getAssignmentRows().isEmpty()) { rows.addAll(view.getAssignmentRows()); } if (!hiddenPropertyRows.isEmpty()) { rows.addAll(hiddenPropertyRows); } return rows; }
ActivityDataIOEditorWidget implements ActivityDataIOEditorWidgetView.Presenter { public List<AssignmentRow> getData() { List<AssignmentRow> rows = new ArrayList<>(); if (!view.getAssignmentRows().isEmpty()) { rows.addAll(view.getAssignmentRows()); } if (!hiddenPropertyRows.isEmpty()) { rows.addAll(hiddenPropertyRows); } return rows; } }
ActivityDataIOEditorWidget implements ActivityDataIOEditorWidgetView.Presenter { public List<AssignmentRow> getData() { List<AssignmentRow> rows = new ArrayList<>(); if (!view.getAssignmentRows().isEmpty()) { rows.addAll(view.getAssignmentRows()); } if (!hiddenPropertyRows.isEmpty()) { rows.addAll(hiddenPropertyRows); } return rows; }  }
ActivityDataIOEditorWidget implements ActivityDataIOEditorWidgetView.Presenter { public List<AssignmentRow> getData() { List<AssignmentRow> rows = new ArrayList<>(); if (!view.getAssignmentRows().isEmpty()) { rows.addAll(view.getAssignmentRows()); } if (!hiddenPropertyRows.isEmpty()) { rows.addAll(hiddenPropertyRows); } return rows; }  @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 List<AssignmentRow> getData() { List<AssignmentRow> rows = new ArrayList<>(); if (!view.getAssignmentRows().isEmpty()) { rows.addAll(view.getAssignmentRows()); } if (!hiddenPropertyRows.isEmpty()) { rows.addAll(hiddenPropertyRows); } return rows; }  @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);  }