From a0e32e9d7ad1bfc7950738543b2e44214927b49b Mon Sep 17 00:00:00 2001 From: spencergibb Date: Thu, 23 Feb 2023 13:18:14 -0500 Subject: [PATCH] =?UTF-8?q?Updates=20to=20use=20SocketUtils=CB=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...andlerMappingWithAutoconfiguredClientIntegrationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/handler/RoutePredicateHandlerMappingWithAutoconfiguredClientIntegrationTests.java b/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/handler/RoutePredicateHandlerMappingWithAutoconfiguredClientIntegrationTests.java index a6428241..1727ee8e 100644 --- a/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/handler/RoutePredicateHandlerMappingWithAutoconfiguredClientIntegrationTests.java +++ b/spring-cloud-gateway-server/src/test/java/org/springframework/cloud/gateway/handler/RoutePredicateHandlerMappingWithAutoconfiguredClientIntegrationTests.java @@ -31,8 +31,8 @@ import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder; import org.springframework.cloud.gateway.test.BaseWebClientTests; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Import; -import org.springframework.test.util.TestSocketUtils; import org.springframework.test.web.reactive.server.WebTestClient; +import org.springframework.util.SocketUtils; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @@ -47,7 +47,7 @@ public class RoutePredicateHandlerMappingWithAutoconfiguredClientIntegrationTest @BeforeAll static void beforeClass() { - int managementPort = TestSocketUtils.findAvailableTcpPort(); + int managementPort = SocketUtils.findAvailableTcpPort(); System.setProperty("management.server.port", String.valueOf(managementPort)); }