Adapt TestRestTemplate to httpclient5 changes

This commit adapts the `TestRestTemplate` implementation to the
httpclient5 API since httpclient 4.x is now unsupported in Spring
Framework.

See gh-32461
This commit is contained in:
Brian Clozel
2022-09-21 16:13:18 +02:00
parent 3ac034e18a
commit cc169e7623
2 changed files with 29 additions and 19 deletions

View File

@@ -23,7 +23,7 @@ import java.net.URI;
import java.util.List;
import java.util.stream.Collectors;
import org.apache.http.client.config.RequestConfig;
import org.apache.hc.client5.http.config.RequestConfig;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.web.client.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory;