@Test public void parse() { for (int i = 0, j = rfc1123text.length; i < j; ++i) { assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime()); } }
@Test public void parse() { for (int i = 0, j = rfc1123text.length; i < j; ++i) { assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime()); } }
@Test public void parse() { for (int i = 0, j = rfc1123text.length; i < j; ++i) { assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime()); } }
@Test public void parse() { for (int i = 0, j = rfc1123text.length; i < j; ++i) { assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime()); } }
@Test public void parse() { for (int i = 0, j = rfc1123text.length; i < j; ++i) { assertEquals(timeStamps[i].getTime(), DateUtil.parseRfc1123Date(rfc1123text[i]).getTime()); } }
@Test public void parseWrongTimeZone() { String expires = "Mon, 12 May 2008 09:23:29 PDT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseAsctime() { // We don't support this, though RFC 2616 suggests we should String expires = "Sun Nov 6 08:49:37 1994"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseRfc1036() { // We don't support this, though RFC 2616 suggests we should String expires = "Sunday, 06-Nov-94 08:49:37 GMT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseWrongTimeZone() { String expires = "Mon, 12 May 2008 09:23:29 PDT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseRfc1036() { // We don't support this, though RFC 2616 suggests we should String expires = "Sunday, 06-Nov-94 08:49:37 GMT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseAsctime() { // We don't support this, though RFC 2616 suggests we should String expires = "Sun Nov 6 08:49:37 1994"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseAsctime() { // We don't support this, though RFC 2616 suggests we should String expires = "Sun Nov 6 08:49:37 1994"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseWrongTimeZone() { String expires = "Mon, 12 May 2008 09:23:29 PDT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseWrongTimeZone() { String expires = "Mon, 12 May 2008 09:23:29 PDT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseRfc1036() { // We don't support this, though RFC 2616 suggests we should String expires = "Sunday, 06-Nov-94 08:49:37 GMT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseAsctime() { // We don't support this, though RFC 2616 suggests we should String expires = "Sun Nov 6 08:49:37 1994"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseRfc1036() { // We don't support this, though RFC 2616 suggests we should String expires = "Sunday, 06-Nov-94 08:49:37 GMT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseWrongTimeZone() { String expires = "Mon, 12 May 2008 09:23:29 PDT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseRfc1036() { // We don't support this, though RFC 2616 suggests we should String expires = "Sunday, 06-Nov-94 08:49:37 GMT"; assertNull(DateUtil.parseRfc1123Date(expires)); }
@Test public void parseAsctime() { // We don't support this, though RFC 2616 suggests we should String expires = "Sun Nov 6 08:49:37 1994"; assertNull(DateUtil.parseRfc1123Date(expires)); }