From fada31fa7f2eb3fec888d59be28283ffb78fca11 Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Thu, 20 Sep 2007 18:38:23 +0000 Subject: [PATCH] adding temporary print to figure out why this gdata-server test is failing on build machine git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@577861 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/gdata/utils/TestDateFormater.java | 1 + 1 file changed, 1 insertion(+) diff --git a/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java b/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java index 9c586b92abd..1f53d9753fc 100644 --- a/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java +++ b/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java @@ -38,6 +38,7 @@ public class TestDateFormater extends TestCase { java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("[A-Z][a-z]{1,2}, [0-9]{1,2} [A-Z][a-z]{2} [0-9]{4} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,2} [A-Z]{2,4}"); Date date = new Date(); String formatedDate = DateFormater.formatDate(date,DateFormater.HTTP_HEADER_DATE_FORMAT); + System.out.println("DATE: " + formatedDate); assertTrue(pattern.matcher(formatedDate).matches()); DateFormater.parseDate("Sun, 25 Jun 2006 13:51:23 +0000",DateFormater.HTTP_HEADER_DATE_FORMAT,DateFormater.HTTP_HEADER_DATE_FORMAT_TIME_OFFSET); DateFormater.parseDate("Sun, 25 Jun 2006 13:51:23 CEST",DateFormater.HTTP_HEADER_DATE_FORMAT,DateFormater.HTTP_HEADER_DATE_FORMAT_TIME_OFFSET);