mirror of https://github.com/apache/lucene.git
SOLR-2690: extreme testing paranoia
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1329893 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
955fa4ba44
commit
dd8202b3ec
|
@ -62,6 +62,20 @@ public class TimeZoneUtilsTest extends LuceneTestCase {
|
|||
}
|
||||
}
|
||||
|
||||
public void testStupidIKnowButIDontTrustTheJVM() throws Exception {
|
||||
|
||||
for (String input : new String[] {"GMT-00", "GMT+00", "GMT-0", "GMT+0",
|
||||
"GMT+08","GMT+8", "GMT-08","GMT-8",
|
||||
"GMT+0800","GMT+08:00",
|
||||
"GMT-0800","GMT-08:00",
|
||||
"GMT+23", "GMT+2300",
|
||||
"GMT-23", "GMT-2300"}) {
|
||||
assertEquals(input,
|
||||
TimeZone.getTimeZone(input),
|
||||
TimeZone.getTimeZone(input));
|
||||
}
|
||||
}
|
||||
|
||||
public void testInvalidInput() throws Exception {
|
||||
|
||||
final String giberish = "giberish";
|
||||
|
|
Loading…
Reference in New Issue