From a58cd050e5845ceb283c0d137c5bdd531794a108 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Wed, 9 Mar 2022 15:36:53 +0000 Subject: [PATCH] Disable LoaderIntegrationTests when all runtimes are incompatible See gh-29524 --- .../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 a526dda4fc4..5162ea39677 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_17) void readUrlsWithoutWarning(JavaRuntime javaRuntime) { try (GenericContainer container = createContainer(javaRuntime)) { container.start();