Updates to use SocketUtilsˆ

This commit is contained in:
spencergibb
2023-02-23 13:18:14 -05:00
parent 539f0a7d1e
commit a0e32e9d7a

View File

@@ -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));
}