From 955fa4ba44466d2bb9b6b153b944045f980acfa9 Mon Sep 17 00:00:00 2001 From: "Chris M. Hostetter" Date: Tue, 24 Apr 2012 17:43:19 +0000 Subject: [PATCH] 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 --- .../src/test/org/apache/solr/util/TimeZoneUtilsTest.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java b/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java index add8efa2335..f53064ce5ee 100644 --- a/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java +++ b/solr/core/src/test/org/apache/solr/util/TimeZoneUtilsTest.java @@ -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));