@Test public void testFormatsWithError() throws Exception { AdaptrisMessage message = AdaptrisMessageFactory.getDefaultInstance().newMessage(); DateFormatBuilder.DateFormatter formatter = new DateFormatBuilderWithOptionalFractionAndOffset().withFormat("yyyy-MM-dd'T'HH:mm:ss").build(message); try { formatter.toDate("2016-08-24X22:35:26.324114Z"); fail(); } catch (ParseException e) { } }
public DateFormatBuilder.DateFormatter build(AdaptrisMessage msg) { return withTimeZone(createWithLocale(msg), msg.resolve(getTimezone())); }
DateFormatBuilderWithOptionalFractionAndOffset extends DateFormatBuilder { public DateFormatBuilder.DateFormatter build(AdaptrisMessage msg) { return withTimeZone(createWithLocale(msg), msg.resolve(getTimezone())); } }
DateFormatBuilderWithOptionalFractionAndOffset extends DateFormatBuilder { public DateFormatBuilder.DateFormatter build(AdaptrisMessage msg) { return withTimeZone(createWithLocale(msg), msg.resolve(getTimezone())); }  }
DateFormatBuilderWithOptionalFractionAndOffset extends DateFormatBuilder { public DateFormatBuilder.DateFormatter build(AdaptrisMessage msg) { return withTimeZone(createWithLocale(msg), msg.resolve(getTimezone())); }  DateFormatBuilder.DateFormatter build(AdaptrisMessage msg); }
DateFormatBuilderWithOptionalFractionAndOffset extends DateFormatBuilder { public DateFormatBuilder.DateFormatter build(AdaptrisMessage msg) { return withTimeZone(createWithLocale(msg), msg.resolve(getTimezone())); }  DateFormatBuilder.DateFormatter build(AdaptrisMessage msg);  }