Uses of Class
org.springframework.boot.test.web.client.TestRestTemplate
-
Uses of TestRestTemplate in org.springframework.boot.test.web.client
Modifier and TypeMethodDescriptionTestRestTemplate.withBasicAuth
(String username, 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.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
.