@Test public void blank_to_null() { assertNull(converter.convert(" ")); }
@Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } } }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }  }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }  @Override LocalDateTime convert(String s); }
LocalDateTimeConverter implements Converter<String, LocalDateTime> { @Override public LocalDateTime convert(String s) { if (StringUtils.isBlank(s)) { return null; } else { ZonedDateTime zonedDateTime = ZonedDateTime.parse(s); return Time.toLocalDateTime(zonedDateTime); } }  @Override LocalDateTime convert(String s);  }