Skip to content

Commit

Permalink
Fix test on Java 24
Browse files Browse the repository at this point in the history
  • Loading branch information
marcphilipp committed Jun 10, 2024
1 parent 994af81 commit f1b2aae
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import static org.junit.jupiter.api.condition.EnabledOnJreIntegrationTests.onJava21;
import static org.junit.jupiter.api.condition.EnabledOnJreIntegrationTests.onJava22;
import static org.junit.jupiter.api.condition.EnabledOnJreIntegrationTests.onJava23;
import static org.junit.jupiter.api.condition.EnabledOnJreIntegrationTests.onJava24;
import static org.junit.jupiter.api.condition.EnabledOnJreIntegrationTests.onJava8;
import static org.junit.jupiter.api.condition.EnabledOnJreIntegrationTests.onJava9;
import static org.junit.jupiter.api.condition.JRE.JAVA_17;
Expand Down Expand Up @@ -80,7 +81,7 @@ void javaMax18() {
@Test
@EnabledForJreRange(min = JAVA_18)
void javaMin18() {
assertTrue(onJava18() || onJava19() || onJava20() || onJava21() || onJava22() || onJava23());
assertTrue(onJava18() || onJava19() || onJava20() || onJava21() || onJava22() || onJava23() || onJava24());
assertFalse(onJava17());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,8 @@ static boolean onJava22() {
static boolean onJava23() {
return JAVA_VERSION.startsWith("23");
}

static boolean onJava24() {
return JAVA_VERSION.startsWith("24");
}
}

0 comments on commit f1b2aae

Please sign in to comment.