1818 */
1919package org .firebirdsql .gds .ng .tz ;
2020
21+ import org .firebirdsql .common .FBTestProperties ;
2122import org .junit .jupiter .params .ParameterizedTest ;
2223import org .junit .jupiter .params .provider .Arguments ;
2324import org .junit .jupiter .params .provider .MethodSource ;
@@ -51,6 +52,7 @@ void mapsJavaZoneIdToFirebirdId(int firebirdZoneId, String zoneName, String jtZo
5152 }
5253
5354 static Stream <Arguments > getTestCases () {
55+ final int javaVersion = FBTestProperties .getJavaFeatureVersion ();
5456 return Stream .of (
5557 testCase (65535 , "GMT" ),
5658 testCase (65534 , "ACT" , "Australia/Darwin" , 65180 ),
@@ -451,7 +453,8 @@ static Stream<Arguments> getTestCases() {
451453 testCase (65139 , "EAT" , "Africa/Addis_Ababa" , 65527 ),
452454 testCase (65138 , "ECT" , "Europe/Paris" , 65061 ),
453455 testCase (65137 , "EET" ),
454- testCase (65136 , "EST" , "-05:00" , 1139 ),
456+ javaVersion < 24 ? testCase (65136 , "EST" , "-05:00" , 1139 )
457+ : testCase (65136 , "EST" , "America/Panama" , 65353 ),
455458 testCase (65135 , "EST5EDT" ),
456459 testCase (65134 , "Egypt" ),
457460 testCase (65133 , "Eire" ),
@@ -560,7 +563,8 @@ static Stream<Arguments> getTestCases() {
560563 testCase (65030 , "GMT-0" , "GMT" , 65535 ),
561564 testCase (65029 , "GMT0" ),
562565 testCase (65028 , "Greenwich" ),
563- testCase (65027 , "HST" , "-10:00" , 839 ),
566+ javaVersion < 24 ? testCase (65027 , "HST" , "-10:00" , 839 )
567+ : testCase (65027 , "HST" , "Pacific/Honolulu" , 64971 ),
564568 testCase (65026 , "Hongkong" ),
565569 testCase (65025 , "IET" , "America/Indiana/Indianapolis" , 65403 ),
566570 testCase (65024 , "IST" , "Asia/Kolkata" , 65248 ),
@@ -585,7 +589,8 @@ static Stream<Arguments> getTestCases() {
585589 testCase (65005 , "Libya" ),
586590 testCase (65004 , "MET" ),
587591 testCase (65003 , "MIT" , "Pacific/Apia" , 64986 ),
588- testCase (65002 , "MST" , "-07:00" , 1019 ),
592+ javaVersion < 24 ? testCase (65002 , "MST" , "-07:00" , 1019 )
593+ : testCase (65002 , "MST" , "America/Phoenix" , 65350 ),
589594 testCase (65001 , "MST7MDT" ),
590595 testCase (65000 , "Mexico/BajaNorte" ),
591596 testCase (64999 , "Mexico/BajaSur" ),
0 commit comments