类的使用
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中的方法 修饰符和类型 方法 说明 MockRestServiceServerMockRestServiceServer.MockRestServiceServerBuilder. build()Build theMockRestServiceServerand set up the underlyingRestTemplateorAsyncRestTemplatewith aClientHttpRequestFactorythat creates mock requests.MockRestServiceServerMockRestServiceServer.MockRestServiceServerBuilder. build(RequestExpectationManager manager)An overloaded build alternative that accepts a customRequestExpectationManager.static MockRestServiceServerMockRestServiceServer. createServer(AsyncRestTemplate asyncRestTemplate)已过时。see deprecation notice onAsyncRestTemplateitselfstatic MockRestServiceServerMockRestServiceServer. createServer(RestTemplate restTemplate)A shortcut forbindTo(restTemplate).build().static MockRestServiceServerMockRestServiceServer. createServer(RestGatewaySupport restGateway)A shortcut forbindTo(restGateway).build().