@Test public void testToDisplay() { final String rawValue = "rawValue"; final String expected = "display value"; when(converter.toDisplayValue(rawValue)).thenReturn(expected); final String actual = dayTimeSelector.toDisplay(rawValue); assertEquals(expected, actual); }
@Override public String toDisplay(final String rawValue) { return converter.toDisplayValue(rawValue); }
DayTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplayValue(rawValue); } }
DayTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplayValue(rawValue); } @Inject  DayTimeSelector(final DayTimeSelector.View view,
                           final DayTimeValueConverter converter); }
DayTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplayValue(rawValue); } @Inject  DayTimeSelector(final DayTimeSelector.View view,
                           final DayTimeValueConverter converter); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override Element getElement(); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChanged); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @Override void select(); @Override String toDisplay(final String rawValue); }
DayTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplayValue(rawValue); } @Inject  DayTimeSelector(final DayTimeSelector.View view,
                           final DayTimeValueConverter converter); @Override String getValue(); @Override void setValue(final String value); @Override void setPlaceholder(final String placeholder); @Override Element getElement(); @Override void setOnInputChangeCallback(final Consumer<Event> onValueChanged); @Override void setOnInputBlurCallback(final Consumer<BlurEvent> onValueInputBlur); @Override void select(); @Override String toDisplay(final String rawValue);  }