类的使用
org.springframework.test.web.client.MockRestServiceServer
使用MockRestServiceServer的程序包 程序包 说明 org.springframework.test.web.client Contains client-side REST testing support.org.springframework.test.web.client中MockRestServiceServer的使用
返回MockRestServiceServer的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 MockRestServiceServer
MockRestServiceServer.MockRestServiceServerBuilder. build()
Build theMockRestServiceServer
and set up the underlyingRestTemplate
orAsyncRestTemplate
with aClientHttpRequestFactory
that creates mock requests.MockRestServiceServer
MockRestServiceServer.MockRestServiceServerBuilder. build(RequestExpectationManager manager)
An overloaded build alternative that accepts a customRequestExpectationManager
.static MockRestServiceServer
MockRestServiceServer. createServer(AsyncRestTemplate asyncRestTemplate)
已过时。see deprecation notice onAsyncRestTemplate
itselfstatic MockRestServiceServer
MockRestServiceServer. createServer(RestTemplate restTemplate)
A shortcut forbindTo(restTemplate).build()
.static MockRestServiceServer
MockRestServiceServer. createServer(RestGatewaySupport restGateway)
A shortcut forbindTo(restGateway).build()
.