程序包 org.springframework.boot.test.web.client
Web client test utilities.
类概要 类 说明 LocalHostUriTemplateHandler UriTemplateHandler
will automatically prefix relative URIs withlocalhost:${local.server.port}
.MockServerRestTemplateCustomizer RestTemplateCustomizer
that can be applied to aRestTemplateBuilder
instances to addMockRestServiceServer
support.RootUriRequestExpectationManager RequestExpectationManager
that strips the specified root URI from the request before verification.TestRestTemplate Convenient alternative ofRestTemplate
that is suitable for integration tests.TestRestTemplate.CustomHttpComponentsClientHttpRequestFactory HttpComponentsClientHttpRequestFactory
to apply customizations.枚举概要 枚举 说明 TestRestTemplate.HttpClientOption Options used to customize the Apache Http Client if it is used.