From 3346ca7899b9822a32aef1a2ee78354acd50fc94 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Sat, 11 Jan 2025 00:25:38 -0800 Subject: [PATCH] Deal with Spring Framework deprecation See gh-43750 --- .../EmbeddedServerContainerInvocationContextProvider.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java b/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java index c7328fc8a20..59b5c62266f 100644 --- a/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java +++ b/spring-boot-tests/spring-boot-integration-tests/spring-boot-server-tests/src/intTest/java/org/springframework/boot/context/embedded/EmbeddedServerContainerInvocationContextProvider.java @@ -44,6 +44,7 @@ import org.junit.jupiter.api.extension.TestTemplateInvocationContextProvider; import org.junit.platform.commons.util.ReflectionUtils; import org.springframework.boot.testsupport.BuildOutput; +import org.springframework.http.HttpMethod; import org.springframework.http.client.ClientHttpResponse; import org.springframework.http.client.HttpComponentsClientHttpRequestFactory; import org.springframework.util.FileSystemUtils; @@ -195,8 +196,12 @@ class EmbeddedServerContainerInvocationContextProvider } @Override + @SuppressWarnings("removal") public void handleError(ClientHttpResponse response) throws IOException { + } + @Override + public void handleError(URI url, HttpMethod method, ClientHttpResponse response) throws IOException { } });