Uses of Class
org.springframework.boot.resttestclient.TestRestTemplate
Packages that use TestRestTemplate
-
Uses of TestRestTemplate in org.springframework.boot.resttestclient
Methods in org.springframework.boot.resttestclient 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.withClientSettings
(UnaryOperator<HttpClientSettings> clientSettingsCustomizer) Creates a newTestRestTemplate
with the same configuration as this one, except that it will customize theHttpClientSettings
.TestRestTemplate.withClientSettings
(HttpClientSettings clientSettings) Creates a newTestRestTemplate
with the same configuration as this one, except that it will apply the givenHttpClientSettings
.TestRestTemplate.withRedirects
(HttpRedirects redirects) Creates a newTestRestTemplate
with the same configuration as this one, except that it will apply the givenHttpRedirects
.