@Test public void unmarshal_should_return_null_for_null_values() throws ParseException { final Date date = cut.unmarshal(null); assertThat(date).isNull(); }
@Override public Date unmarshal(String value) throws ParseException { if (StringUtils.isEmpty(value)) { return null; } return new SimpleDateFormat(DATE_TIME_PATTERN).parse(value); }
RtcDateTimeAdapter extends XmlAdapter<String, Date> { @Override public Date unmarshal(String value) throws ParseException { if (StringUtils.isEmpty(value)) { return null; } return new SimpleDateFormat(DATE_TIME_PATTERN).parse(value); } }
RtcDateTimeAdapter extends XmlAdapter<String, Date> { @Override public Date unmarshal(String value) throws ParseException { if (StringUtils.isEmpty(value)) { return null; } return new SimpleDateFormat(DATE_TIME_PATTERN).parse(value); }  }
RtcDateTimeAdapter extends XmlAdapter<String, Date> { @Override public Date unmarshal(String value) throws ParseException { if (StringUtils.isEmpty(value)) { return null; } return new SimpleDateFormat(DATE_TIME_PATTERN).parse(value); }  @Override Date unmarshal(String value); @Override String marshal(Date value); }
RtcDateTimeAdapter extends XmlAdapter<String, Date> { @Override public Date unmarshal(String value) throws ParseException { if (StringUtils.isEmpty(value)) { return null; } return new SimpleDateFormat(DATE_TIME_PATTERN).parse(value); }  @Override Date unmarshal(String value); @Override String marshal(Date value);  }