mirror of https://github.com/apache/lucene.git
remove temporary print for GData unit test
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@577892 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3f517bff75
commit
511406ecbe
|
@ -38,7 +38,6 @@ 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(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);
|
||||
|
|
Loading…
Reference in New Issue