### Question:
DayTimeSelectorView implements DayTimeSelector.View { @Override public DayTimeValue getValue() { final DayTimeValue value = new DayTimeValue(); value.setDays(toInteger(daysInput.value, NONE)); value.setHours(toInteger(hoursInput.value, NONE)); value.setMinutes(toInteger(minutesInput.value, NONE)); value.setSeconds(toInteger(secondsInput.value, NONE)); return value; } @Inject  DayTimeSelectorView(final HTMLInputElement daysInput,
                               final HTMLInputElement hoursInput,
                               final HTMLInputElement minutesInput,
                               final HTMLInputElement secondsInput); @Override void init(final DayTimeSelector presenter); @PostConstruct void setupEventHandlers(); @Override DayTimeValue getValue(); @Override void setValue(final DayTimeValue value); @Override void setOnValueChanged(final Consumer<Event> onValueChangedConsumer); @Override void setOnValueInputBlur(final Consumer<BlurEvent> onValueInputBlurConsumer); @EventHandler("days-input") void onDaysInputBlurEvent(final BlurEvent blurEvent); @EventHandler("hours-input") void onHoursInputBlurEvent(final BlurEvent blurEvent); @EventHandler("minutes-input") void onMinutesInputBlurEvent(final BlurEvent blurEvent); @EventHandler("seconds-input") void onSecondsInputBlurEvent(final BlurEvent blurEvent); @Override void select();  }### Answer:
@Test public void testGetValue() { daysInput.value = "2"; hoursInput.value = "4"; minutesInput.value = "8"; secondsInput.value = "16"; final DayTimeValue value = view.getValue(); assertEquals(value.getDays(), new Integer(2)); assertEquals(value.getHours(), new Integer(4)); assertEquals(value.getMinutes(), new Integer(8)); assertEquals(value.getSeconds(), new Integer(16)); }
@Test public void testGetValueWhenValuesAreBlank() { daysInput.value = ""; hoursInput.value = ""; minutesInput.value = ""; secondsInput.value = ""; final DayTimeValue value = view.getValue(); assertEquals(value.getDays(), NONE); assertEquals(value.getHours(), NONE); assertEquals(value.getMinutes(), NONE); assertEquals(value.getSeconds(), NONE); }