@Test public void failsParsingWithIllegalArgumentException() { assertThrows( IllegalArgumentException.class, () -> serde.deserialize("2019-06-01T09:42:55.12X3Z") ); }
@Override public Instant deserialize(final String value) { try { return Instant.from( DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(value) ); } catch (final DateTimeParseException ex) { throw new IllegalArgumentException(ex); } }
InstantSerde implements Serde<String, Instant> { @Override public Instant deserialize(final String value) { try { return Instant.from( DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(value) ); } catch (final DateTimeParseException ex) { throw new IllegalArgumentException(ex); } } }
InstantSerde implements Serde<String, Instant> { @Override public Instant deserialize(final String value) { try { return Instant.from( DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(value) ); } catch (final DateTimeParseException ex) { throw new IllegalArgumentException(ex); } }  }
InstantSerde implements Serde<String, Instant> { @Override public Instant deserialize(final String value) { try { return Instant.from( DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(value) ); } catch (final DateTimeParseException ex) { throw new IllegalArgumentException(ex); } }  @Override Instant deserialize(final String value); @Override String serialize(final Instant value); }
InstantSerde implements Serde<String, Instant> { @Override public Instant deserialize(final String value) { try { return Instant.from( DateTimeFormatter.ISO_OFFSET_DATE_TIME.parse(value) ); } catch (final DateTimeParseException ex) { throw new IllegalArgumentException(ex); } }  @Override Instant deserialize(final String value); @Override String serialize(final Instant value);  }