@Test void ensureItToleratesAnotherFormat() { final LocalDateTime localDateTime = LocalDateTime.now(); assertEquals(localDateTime.toLocalDate(), new LocalDateConverter().toObjectImpl(localDateTime.toString())); }
@Override protected Object toObjectImpl(final String text) { if (text.isEmpty()) { return null; } return ZonedDateTime.class.cast(new ZonedDateTimeConverter().toObjectImpl(text)).toLocalDate(); }
LocalDateConverter extends AbstractConverter { @Override protected Object toObjectImpl(final String text) { if (text.isEmpty()) { return null; } return ZonedDateTime.class.cast(new ZonedDateTimeConverter().toObjectImpl(text)).toLocalDate(); } }
LocalDateConverter extends AbstractConverter { @Override protected Object toObjectImpl(final String text) { if (text.isEmpty()) { return null; } return ZonedDateTime.class.cast(new ZonedDateTimeConverter().toObjectImpl(text)).toLocalDate(); } LocalDateConverter(); }
LocalDateConverter extends AbstractConverter { @Override protected Object toObjectImpl(final String text) { if (text.isEmpty()) { return null; } return ZonedDateTime.class.cast(new ZonedDateTimeConverter().toObjectImpl(text)).toLocalDate(); } LocalDateConverter();  }
LocalDateConverter extends AbstractConverter { @Override protected Object toObjectImpl(final String text) { if (text.isEmpty()) { return null; } return ZonedDateTime.class.cast(new ZonedDateTimeConverter().toObjectImpl(text)).toLocalDate(); } LocalDateConverter();   }