From a8f9212d01048caca2bf4304fd591fcf2c124f48 Mon Sep 17 00:00:00 2001 From: spencergibb Date: Wed, 5 Feb 2025 15:29:44 -0500 Subject: [PATCH] Disables test for jdk 23 and up --- .../server/mvc/GatewayServerMvcAutoConfigurationTests.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/GatewayServerMvcAutoConfigurationTests.java b/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/GatewayServerMvcAutoConfigurationTests.java index 95526486..7eb56405 100644 --- a/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/GatewayServerMvcAutoConfigurationTests.java +++ b/spring-cloud-gateway-server-mvc/src/test/java/org/springframework/cloud/gateway/server/mvc/GatewayServerMvcAutoConfigurationTests.java @@ -19,6 +19,8 @@ package org.springframework.cloud.gateway.server.mvc; import java.time.Duration; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.condition.DisabledForJreRange; +import org.junit.jupiter.api.condition.JRE; import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.autoconfigure.AutoConfigurations; @@ -132,6 +134,7 @@ public class GatewayServerMvcAutoConfigurationTests { }); } + @DisabledForJreRange(min = JRE.JAVA_23) @Test void gatewayHttpClientPropertiesWork() { ConfigurableApplicationContext context = new SpringApplicationBuilder(TestConfig.class)