mirror of https://github.com/apache/lucene.git
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:
parent
31f12e4b73
commit
955fa4ba44
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue