From 8259f15451654730b889d8d26e6f7e21ce8f9a24 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 19 Jul 2021 11:53:58 +0100 Subject: [PATCH] Fix deprecation warnings See gh-27383 --- .../test/java/smoketest/jetty10/Jetty10Http2OverTlsTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/test/java/smoketest/jetty10/Jetty10Http2OverTlsTests.java b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/test/java/smoketest/jetty10/Jetty10Http2OverTlsTests.java index 91ebdd460c1..d5f39c5f931 100644 --- a/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/test/java/smoketest/jetty10/Jetty10Http2OverTlsTests.java +++ b/spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/test/java/smoketest/jetty10/Jetty10Http2OverTlsTests.java @@ -19,8 +19,8 @@ package smoketest.jetty10; import javax.net.ssl.SSLContext; import org.apache.hc.client5.http.async.methods.SimpleHttpRequest; -import org.apache.hc.client5.http.async.methods.SimpleHttpRequests; import org.apache.hc.client5.http.async.methods.SimpleHttpResponse; +import org.apache.hc.client5.http.async.methods.SimpleRequestBuilder; import org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient; import org.apache.hc.client5.http.impl.async.HttpAsyncClients; import org.apache.hc.client5.http.ssl.ClientTlsStrategyBuilder; @@ -61,7 +61,7 @@ public class Jetty10Http2OverTlsTests { try (CloseableHttpAsyncClient http2Client = HttpAsyncClients.customHttp2().setTlsStrategy(tlsStrategy) .build()) { http2Client.start(); - SimpleHttpRequest request = SimpleHttpRequests.get("https://localhost:" + this.port); + SimpleHttpRequest request = SimpleRequestBuilder.get("https://localhost:" + this.port).build(); request.setBody("Hello World", ContentType.TEXT_PLAIN); SimpleHttpResponse response = http2Client.execute(request, new FutureCallback() {