MultipleNumberParameterEditor implements FunctionParameterEditor { public void setValues(List input) { values = input; view.setValue(format(input)); } @Inject  MultipleNumberParameterEditor(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(10d)); verify(view).setValue("10.0"); }
@Test public void testShowSingleValue2() { presenter.setValues(Arrays.asList("10")); verify(view).setValue("10"); }
@Test public void testShowMultipleValues() { presenter.setValues(Arrays.asList(10d, 20d, 30d)); verify(view).setValue("10.0 | 20.0 | 30.0"); }