Uses of Class
org.springframework.boot.restclient.test.TestRestTemplate
Packages that use TestRestTemplate
Package
Description
RestClient and RestTemplate test utilities.
-
Uses of TestRestTemplate in org.springframework.boot.restclient.test
Methods in org.springframework.boot.restclient.test that return TestRestTemplateModifier and TypeMethodDescriptionTestRestTemplate.withBasicAuth
(@Nullable String username, @Nullable String password) Creates a newTestRestTemplate
with the same configuration as this one, except that it will send basic authorization headers using the givenusername
andpassword
.TestRestTemplate.withRedirects
(HttpRedirects redirects) Creates a newTestRestTemplate
with the same configuration as this one, except that it will apply the givenHttpRedirects
.TestRestTemplate.withRequestFactorySettings
(UnaryOperator<ClientHttpRequestFactorySettings> requestFactorySettingsCustomizer) Creates a newTestRestTemplate
with the same configuration as this one, except that it will customize theClientHttpRequestFactorySettings
.TestRestTemplate.withRequestFactorySettings
(ClientHttpRequestFactorySettings requestFactorySettings) Creates a newTestRestTemplate
with the same configuration as this one, except that it will apply the givenClientHttpRequestFactorySettings
.