From c3416ac97acdef3e2f0053b7a7d5537805a9ee83 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sat, 10 Sep 2022 10:31:48 +0200 Subject: [PATCH] Disable LoaderIntegrationTests with Java 19 See gh-32295 --- .../springframework/boot/loader/LoaderIntegrationTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java b/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java index 8aa27b2efd..70a0d38051 100644 --- a/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java +++ b/spring-boot-tests/spring-boot-integration-tests/spring-boot-loader-tests/src/intTest/java/org/springframework/boot/loader/LoaderIntegrationTests.java @@ -23,6 +23,8 @@ import java.util.List; import java.util.function.Supplier; import java.util.stream.Stream; +import org.junit.jupiter.api.condition.EnabledForJreRange; +import org.junit.jupiter.api.condition.JRE; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; import org.testcontainers.containers.GenericContainer; @@ -50,6 +52,7 @@ class LoaderIntegrationTests { @ParameterizedTest @MethodSource("javaRuntimes") + @EnabledForJreRange(max = JRE.JAVA_18) void readUrlsWithoutWarning(JavaRuntime javaRuntime) { try (GenericContainer container = createContainer(javaRuntime)) { container.start();