1717package io .github .bonigarcia ;
1818
1919import static java .lang .invoke .MethodHandles .lookup ;
20- import static org .junit .jupiter .api .condition .JRE .JAVA_8 ;
21- import static org .junit .jupiter .api .condition .JRE .JAVA_9 ;
22- import static org .junit .jupiter .api .condition .JRE .JAVA_10 ;
23- import static org .junit .jupiter .api .condition .JRE .JAVA_11 ;
20+ import static org .junit .jupiter .api .condition .JRE .JAVA_17 ;
21+ import static org .junit .jupiter .api .condition .JRE .JAVA_18 ;
22+ import static org .junit .jupiter .api .condition .JRE .JAVA_19 ;
23+ import static org .junit .jupiter .api .condition .JRE .JAVA_25 ;
2424import static org .slf4j .LoggerFactory .getLogger ;
2525
2626import org .junit .jupiter .api .Test ;
@@ -35,57 +35,57 @@ class DisabledOnJreRangeTest {
3535 static final Logger log = getLogger (lookup ().lookupClass ());
3636
3737 @ Test
38- @ EnabledOnJre (JAVA_8 )
39- void onlyOnJava8 () {
40- log .debug ("This test is executed only for JRE 8 " );
38+ @ EnabledOnJre (JAVA_17 )
39+ void onlyOnJava17 () {
40+ log .debug ("This test is executed only for JRE 17 " );
4141 }
4242
4343 @ Test
44- @ EnabledOnJre ({ JAVA_9 , JAVA_10 })
45- void onJava9Or10 () {
46- log .debug ("This test is executed only for JRE 9 or 10 " );
44+ @ EnabledOnJre ({ JAVA_18 , JAVA_19 })
45+ void onJava18Or19 () {
46+ log .debug ("This test is executed only for JRE 18 or 19 " );
4747 }
4848
4949 @ Test
50- @ EnabledForJreRange (min = JAVA_9 , max = JAVA_11 )
51- void fromJava9to11 () {
52- log .debug ("This test is executed only for JRE 9 to 11 " );
50+ @ EnabledForJreRange (min = JAVA_19 , max = JAVA_25 )
51+ void fromJava19to25 () {
52+ log .debug ("This test is executed only for JRE 19 to 25 " );
5353 }
5454
5555 @ Test
56- @ EnabledForJreRange (min = JAVA_9 )
57- void fromJava9toCurrentJavaFeatureNumber () {
58- log .debug ("This test is executed only for JRE 9 +" );
56+ @ EnabledForJreRange (min = JAVA_18 )
57+ void fromJava18toCurrentJavaFeatureNumber () {
58+ log .debug ("This test is executed only for JRE 18 +" );
5959 }
6060
6161 @ Test
62- @ EnabledForJreRange (max = JAVA_11 )
63- void fromJava8To11 () {
64- log .debug ("This test is executed only for JRE 8 to 11 " );
62+ @ EnabledForJreRange (max = JAVA_18 )
63+ void maxJava18 () {
64+ log .debug ("This test is executed only up to JRE 18 " );
6565 }
6666
6767 @ Test
68- @ DisabledOnJre (JAVA_9 )
69- void notOnJava9 () {
70- log .debug ("This test is executed only for JRE != 9 " );
68+ @ DisabledOnJre (JAVA_17 )
69+ void notOnJava17 () {
70+ log .debug ("This test is executed only for JRE != 17 " );
7171 }
7272
7373 @ Test
74- @ DisabledForJreRange (min = JAVA_9 , max = JAVA_11 )
75- void notFromJava9to11 () {
76- log .debug ("This test is executed only for JRE != 9 to 11 " );
74+ @ DisabledForJreRange (min = JAVA_18 , max = JAVA_19 )
75+ void notFromJava18to19 () {
76+ log .debug ("This test is executed only for JRE != 18 to 19 " );
7777 }
7878
7979 @ Test
80- @ DisabledForJreRange (min = JAVA_9 )
81- void notFromJava9toCurrentJavaFeatureNumber () {
82- log .debug ("This test is executed only for JRE < 9 " );
80+ @ DisabledForJreRange (min = JAVA_18 )
81+ void notFromJava18toCurrentJavaFeatureNumber () {
82+ log .debug ("This test is executed only for JRE < 18 " );
8383 }
8484
8585 @ Test
86- @ DisabledForJreRange (max = JAVA_11 )
87- void notFromJava8to11 () {
88- log .debug ("This test is executed only for JRE != 8 to 11 " );
86+ @ DisabledForJreRange (max = JAVA_25 )
87+ void notFromJava25 () {
88+ log .debug ("This test is executed only for JRE < 25 " );
8989 }
9090
9191}
0 commit comments