SOLR-2690: more explicit checks, particularly GMT-00 which seems to have made jenkins java7 unhappy

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1329887 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris M. Hostetter 2012-04-24 17:43:19 +00:00
parent 31f12e4b73
commit 955fa4ba44
1 changed files with 5 additions and 2 deletions

View File

@ -50,9 +50,12 @@ public class TimeZoneUtilsTest extends LuceneTestCase {
public void testCustom() throws Exception {
for (String input : new String[] {"GMT+08","GMT+8",
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",
"GMT-23", "GMT-2300"}) {
assertEquals(input,
TimeZone.getTimeZone(input),
TimeZoneUtils.getTimeZone(input));