@Test public void testToDisplay() { final String raw = "raw"; final String display = "display"; when(converter.toDisplay(raw)).thenReturn(display); final String actual = selector.toDisplay(raw); assertEquals(display, actual); }
@Override public String toDisplay(final String rawValue) { return converter.toDisplay(rawValue); }
DateTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplay(rawValue); } }
DateTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplay(rawValue); } @Inject  DateTimeSelector(final DateTimeSelector.View view,
                            final DateTimeValueConverter converter); }
DateTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplay(rawValue); } @Inject  DateTimeSelector(final DateTimeSelector.View view,
                            final DateTimeValueConverter 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); }
DateTimeSelector implements TypedValueSelector { @Override public String toDisplay(final String rawValue) { return converter.toDisplay(rawValue); } @Inject  DateTimeSelector(final DateTimeSelector.View view,
                            final DateTimeValueConverter 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);  }