MultipleTextParameterEditor implements FunctionParameterEditor { public void setValues(List input) { values = input; view.setValue(format(input)); } @Inject  MultipleTextParameterEditor(View view); @Override Widget asWidget(); void setOnChangeCommand(Command onChangeCommand); List getValues(); void setValues(List input); @Override void setFocus(boolean focus); List parse(String s); String format(List l);  }
@Test public void testShowSingleValue() { presenter.setValues(Arrays.asList("val")); verify(view).setValue("val"); }
@Test public void testShowMultipleValues() { presenter.setValues(Arrays.asList("val1", "val2", "val3")); verify(view).setValue("val1 | val2 | val3"); }