From 1b41de0e424202fb1e7723156354c4779b4ad7ef Mon Sep 17 00:00:00 2001 From: Afly Date: Thu, 17 Dec 2020 11:29:42 +0800 Subject: [PATCH] =?UTF-8?q?DEC-16125=20fix:=20=E5=B0=91=E4=BA=86=E4=B8=80?= =?UTF-8?q?=E4=B8=AAGMT+12,third=E5=8C=85=E5=8D=95=E5=85=83=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E8=B7=91=E4=B8=8D=E5=88=B0=EF=BC=8C=E7=A7=BB=E5=88=B0?= =?UTF-8?q?decision?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../third/joda/time/tz/ZoneInfoProvider.java | 1 + .../joda/time/tz/ZoneInfoProviderTest.java | 35 ------------------- 2 files changed, 1 insertion(+), 35 deletions(-) delete mode 100644 fine-joda/src/test/java/com/fr/third/joda/time/tz/ZoneInfoProviderTest.java diff --git a/fine-joda/src/main/java/com/fr/third/joda/time/tz/ZoneInfoProvider.java b/fine-joda/src/main/java/com/fr/third/joda/time/tz/ZoneInfoProvider.java index 3cddda70e..b38a0b612 100644 --- a/fine-joda/src/main/java/com/fr/third/joda/time/tz/ZoneInfoProvider.java +++ b/fine-joda/src/main/java/com/fr/third/joda/time/tz/ZoneInfoProvider.java @@ -324,6 +324,7 @@ public class ZoneInfoProvider implements Provider { GMTData.put("GMT+9", new byte[]{70, 0, 3, 45, 48, 57, 46, 46}); GMTData.put("GMT+10", new byte[]{70, 0, 3, 45, 49, 48, 44, 44}); GMTData.put("GMT+11", new byte[]{70, 0, 3, 45, 49, 49, 42, 42}); + GMTData.put("GMT+12", new byte[]{70, 0, 3, 45, 49, 50, 40, 40}); } } diff --git a/fine-joda/src/test/java/com/fr/third/joda/time/tz/ZoneInfoProviderTest.java b/fine-joda/src/test/java/com/fr/third/joda/time/tz/ZoneInfoProviderTest.java deleted file mode 100644 index 19103c0dd..000000000 --- a/fine-joda/src/test/java/com/fr/third/joda/time/tz/ZoneInfoProviderTest.java +++ /dev/null @@ -1,35 +0,0 @@ -package com.fr.third.joda.time.tz; - -import org.junit.Test; - -import java.io.IOException; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; - -import static org.junit.Assert.*; - -/** - * @author Afly - * created on 2020-12-16 - */ -public class ZoneInfoProviderTest { - - @Test - public void testGetResource() throws IOException, NoSuchMethodException { - ZoneInfoProvider zoneInfoProvider = new ZoneInfoProvider(); - assertNotNull(zoneInfoProvider.getZone("Etc/GMT+8")); - Method openResource = zoneInfoProvider.getClass().getDeclaredMethod("openResource", String.class); - openResource.setAccessible(true); - try { - openResource.invoke(zoneInfoProvider, "Etc/Exception+8"); - fail(); - } catch (Exception ignored) { - } - - try { - openResource.invoke(zoneInfoProvider, "Etc/Exception-8"); - fail(); - } catch (Exception ignored) { - } - } -} \ No newline at end of file