Skip to content

Commit 8259f15

Browse files
committed
Fix deprecation warnings
See gh-27383
1 parent ac668dd commit 8259f15

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty10/src/test/java/smoketest/jetty10/Jetty10Http2OverTlsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
import javax.net.ssl.SSLContext;
2020

2121
import org.apache.hc.client5.http.async.methods.SimpleHttpRequest;
22-
import org.apache.hc.client5.http.async.methods.SimpleHttpRequests;
2322
import org.apache.hc.client5.http.async.methods.SimpleHttpResponse;
23+
import org.apache.hc.client5.http.async.methods.SimpleRequestBuilder;
2424
import org.apache.hc.client5.http.impl.async.CloseableHttpAsyncClient;
2525
import org.apache.hc.client5.http.impl.async.HttpAsyncClients;
2626
import org.apache.hc.client5.http.ssl.ClientTlsStrategyBuilder;
@@ -61,7 +61,7 @@ void httpOverTlsGetWhenHttp2AndSslAreEnabledSucceeds() throws Exception {
6161
try (CloseableHttpAsyncClient http2Client = HttpAsyncClients.customHttp2().setTlsStrategy(tlsStrategy)
6262
.build()) {
6363
http2Client.start();
64-
SimpleHttpRequest request = SimpleHttpRequests.get("https://localhost:" + this.port);
64+
SimpleHttpRequest request = SimpleRequestBuilder.get("https://localhost:" + this.port).build();
6565
request.setBody("Hello World", ContentType.TEXT_PLAIN);
6666
SimpleHttpResponse response = http2Client.execute(request, new FutureCallback<SimpleHttpResponse>() {
6767

0 commit comments

Comments
 (0)