Java Code Examples for java.time.ZoneId#SHORT_IDS
The following examples show how to use
java.time.ZoneId#SHORT_IDS .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TCKZoneId.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 2
Source File: TCKZoneId.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 3
Source File: TCKZoneId.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 4
Source File: TCKZoneId.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 5
Source File: TCKZoneId.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 6
Source File: TCKZoneId.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 7
Source File: TCKZoneId.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 8
Source File: TCKZoneId.java From hottub with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 9
Source File: TCKZoneId.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 10
Source File: TCKZoneId.java From jdk8u_jdk with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 11
Source File: TCKZoneId.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
public void test_constant_OLD_IDS_POST_2005() { Map<String, String> ids = ZoneId.SHORT_IDS; assertEquals(ids.get("EST"), "-05:00"); assertEquals(ids.get("MST"), "-07:00"); assertEquals(ids.get("HST"), "-10:00"); assertEquals(ids.get("ACT"), "Australia/Darwin"); assertEquals(ids.get("AET"), "Australia/Sydney"); assertEquals(ids.get("AGT"), "America/Argentina/Buenos_Aires"); assertEquals(ids.get("ART"), "Africa/Cairo"); assertEquals(ids.get("AST"), "America/Anchorage"); assertEquals(ids.get("BET"), "America/Sao_Paulo"); assertEquals(ids.get("BST"), "Asia/Dhaka"); assertEquals(ids.get("CAT"), "Africa/Harare"); assertEquals(ids.get("CNT"), "America/St_Johns"); assertEquals(ids.get("CST"), "America/Chicago"); assertEquals(ids.get("CTT"), "Asia/Shanghai"); assertEquals(ids.get("EAT"), "Africa/Addis_Ababa"); assertEquals(ids.get("ECT"), "Europe/Paris"); assertEquals(ids.get("IET"), "America/Indiana/Indianapolis"); assertEquals(ids.get("IST"), "Asia/Kolkata"); assertEquals(ids.get("JST"), "Asia/Tokyo"); assertEquals(ids.get("MIT"), "Pacific/Apia"); assertEquals(ids.get("NET"), "Asia/Yerevan"); assertEquals(ids.get("NST"), "Pacific/Auckland"); assertEquals(ids.get("PLT"), "Asia/Karachi"); assertEquals(ids.get("PNT"), "America/Phoenix"); assertEquals(ids.get("PRT"), "America/Puerto_Rico"); assertEquals(ids.get("PST"), "America/Los_Angeles"); assertEquals(ids.get("SST"), "Pacific/Guadalcanal"); assertEquals(ids.get("VST"), "Asia/Ho_Chi_Minh"); }
Example 12
Source File: TCKZoneId.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }
Example 13
Source File: TCKZoneId.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }
Example 14
Source File: TCKZoneId.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }
Example 15
Source File: TCKZoneId.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }
Example 16
Source File: TCKZoneId.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }
Example 17
Source File: ParseZoneIdTest.java From super-csv with Apache License 2.0 | 4 votes |
@Theory public void testShortIds(final String shortId) { final ParseZoneId processor = new ParseZoneId(ZoneId.SHORT_IDS); assertEquals(ZoneId.of(shortId, ZoneId.SHORT_IDS), processor.execute(shortId, ANONYMOUS_CSVCONTEXT)); }
Example 18
Source File: TCKZoneId.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }
Example 19
Source File: TCKZoneId.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }
Example 20
Source File: TCKZoneId.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
@Test(expectedExceptions=UnsupportedOperationException.class) public void test_constant_OLD_IDS_POST_2005_immutable() { Map<String, String> ids = ZoneId.SHORT_IDS; ids.clear(); }