@Test(groups = "transcode", dataProvider = "invalid") public void testInvalid(final String generalizedTime) throws Exception { try { transcoder.decodeStringValue(generalizedTime); Assert.fail("Should have thrown exception"); } catch (Exception e) { Assert.assertEquals(e.getClass(), IllegalArgumentException.class); } }
@Override public ZonedDateTime decodeStringValue(final String value) { try { return parseGeneralizedTime(value); } catch (ParseException | DateTimeException e) { throw new IllegalArgumentException(e); } }
GeneralizedTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public ZonedDateTime decodeStringValue(final String value) { try { return parseGeneralizedTime(value); } catch (ParseException | DateTimeException e) { throw new IllegalArgumentException(e); } } }
GeneralizedTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public ZonedDateTime decodeStringValue(final String value) { try { return parseGeneralizedTime(value); } catch (ParseException | DateTimeException e) { throw new IllegalArgumentException(e); } }  }
GeneralizedTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public ZonedDateTime decodeStringValue(final String value) { try { return parseGeneralizedTime(value); } catch (ParseException | DateTimeException e) { throw new IllegalArgumentException(e); } }  @Override ZonedDateTime decodeStringValue(final String value); @Override String encodeStringValue(final ZonedDateTime value); @Override Class<ZonedDateTime> getType(); }
GeneralizedTimeValueTranscoder extends AbstractStringValueTranscoder<ZonedDateTime> { @Override public ZonedDateTime decodeStringValue(final String value) { try { return parseGeneralizedTime(value); } catch (ParseException | DateTimeException e) { throw new IllegalArgumentException(e); } }  @Override ZonedDateTime decodeStringValue(final String value); @Override String encodeStringValue(final ZonedDateTime value); @Override Class<ZonedDateTime> getType();  }