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:
Chris M. Hostetter 2012-04-24 17:53:18 +00:00
parent 955fa4ba44
commit dd8202b3ec
1 changed files with 14 additions and 0 deletions

View File

@ -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";