mirror of https://github.com/apache/lucene.git
Some timezones do not even roundtrip (like Mideast/Riyadh87), so disable the completely random timezone test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1690052 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f723f0c76b
commit
28cfd161d2
|
@ -18,18 +18,12 @@ package org.apache.solr.common.util;
|
|||
*/
|
||||
|
||||
import java.text.ParseException;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
|
||||
public class TestDateUtil extends LuceneTestCase {
|
||||
|
||||
public void testDateToString() throws ParseException {
|
||||
long ts = 1226583351000L;
|
||||
assertParsedDate(ts, new Date(ts).toString());
|
||||
}
|
||||
|
||||
public void testParseDate() throws ParseException {
|
||||
assertParsedDate(1226583351000L, "Thu Nov 13 04:35:51 AKST 2008");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue