lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r577873 - /lucene/java/trunk/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java
Date Thu, 20 Sep 2007 18:52:42 GMT
Author: hossman
Date: Thu Sep 20 11:52:42 2007
New Revision: 577873

URL: http://svn.apache.org/viewvc?rev=577873&view=rev
Log:
don't just write date to stdout, include date string in failure message

Modified:
    lucene/java/trunk/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java

Modified: lucene/java/trunk/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java?rev=577873&r1=577872&r2=577873&view=diff
==============================================================================
--- lucene/java/trunk/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java
(original)
+++ lucene/java/trunk/contrib/gdata-server/src/core/src/test/org/apache/lucene/gdata/utils/TestDateFormater.java
Thu Sep 20 11:52:42 2007
@@ -39,7 +39,8 @@
             Date date = new Date();
             String formatedDate = DateFormater.formatDate(date,DateFormater.HTTP_HEADER_DATE_FORMAT);
             System.out.println("DATE: " + formatedDate);
-            assertTrue(pattern.matcher(formatedDate).matches());    
+            assertTrue(formatedDate + " does not match expected pattern",
+                       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);
             //TODO extend this



Mime
View raw message