类的使用
cn.taketoday.test.web.client.MockRestServiceServer
使用MockRestServiceServer的程序包
程序包
说明
Web client test utilities.
Contains client-side REST testing support.
-
cn.taketoday.framework.test.web.client中MockRestServiceServer的使用
修饰符和类型字段说明private final Map<cn.taketoday.web.client.RestTemplate,MockRestServiceServer> MockServerRestTemplateCustomizer.servers修饰符和类型方法说明static MockRestServiceServerRootUriRequestExpectationManager.bindTo(cn.taketoday.web.client.RestTemplate restTemplate) Return a boundMockRestServiceServerfor the givenRestTemplate, configured withRootUriRequestExpectationManagerwhen possible.static MockRestServiceServerRootUriRequestExpectationManager.bindTo(cn.taketoday.web.client.RestTemplate restTemplate, RequestExpectationManager expectationManager) Return a boundMockRestServiceServerfor the givenRestTemplate, configured withRootUriRequestExpectationManagerwhen possible.MockServerRestTemplateCustomizer.getServer()MockServerRestTemplateCustomizer.getServer(cn.taketoday.web.client.RestTemplate restTemplate) 返回变量类型为MockRestServiceServer的类型的cn.taketoday.framework.test.web.client中的方法修饰符和类型方法说明Map<cn.taketoday.web.client.RestTemplate,MockRestServiceServer> MockServerRestTemplateCustomizer.getServers() -
cn.taketoday.test.web.client中MockRestServiceServer的使用
修饰符和类型方法说明MockRestServiceServer.AbstractMockRestServiceServerBuilder.build()MockRestServiceServer.AbstractMockRestServiceServerBuilder.build(RequestExpectationManager manager) MockRestServiceServer.MockRestServiceServerBuilder.build()Build theMockRestServiceServerand set up the underlyingRestTemplatewith aClientHttpRequestFactorythat creates mock requests.MockRestServiceServer.MockRestServiceServerBuilder.build(RequestExpectationManager manager) An overloaded build alternative that accepts a customRequestExpectationManager.static MockRestServiceServerMockRestServiceServer.createServer(cn.taketoday.web.client.RestTemplate restTemplate) A shortcut forbindTo(restTemplate).build().static MockRestServiceServerMockRestServiceServer.createServer(cn.taketoday.web.client.support.RestGatewaySupport restGateway) A shortcut forbindTo(restGateway).build().