@Test(expected = IllegalArgumentException.class) public void failsParseDateIfItDoesNotMatchToAnySupportedFormat() { String dateHeader = "12:03:50 GMT"; dateHeaderDelegate.fromString(dateHeader); }
@Override public Date fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } return HeaderHelper.parseDateHeader(header); }
DateHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Date> { @Override public Date fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } return HeaderHelper.parseDateHeader(header); } }
DateHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Date> { @Override public Date fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } return HeaderHelper.parseDateHeader(header); }  }
DateHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Date> { @Override public Date fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } return HeaderHelper.parseDateHeader(header); }  @Override Date fromString(String header); @Override String toString(Date date); }
DateHeaderDelegate implements RuntimeDelegate.HeaderDelegate<Date> { @Override public Date fromString(String header) { if (header == null) { throw new IllegalArgumentException(); } return HeaderHelper.parseDateHeader(header); }  @Override Date fromString(String header); @Override String toString(Date date);  }