接口的使用
cn.taketoday.test.web.client.RequestExpectationManager
程序包
说明
Web client test utilities.
Contains client-side REST testing support.
-
cn.taketoday.framework.test.web.client中RequestExpectationManager的使用
修饰符和类型类说明classRequestExpectationManagerthat strips the specified root URI from the request before verification.修饰符和类型字段说明private final RequestExpectationManagerRootUriRequestExpectationManager.expectationManager修饰符和类型字段说明private final Map<cn.taketoday.web.client.RestTemplate,RequestExpectationManager> MockServerRestTemplateCustomizer.expectationManagersprivate final Supplier<? extends RequestExpectationManager>MockServerRestTemplateCustomizer.expectationManagerSupplier修饰符和类型方法说明protected RequestExpectationManagerMockServerRestTemplateCustomizer.createExpectationManager()static RequestExpectationManagerRootUriRequestExpectationManager.forRestTemplate(cn.taketoday.web.client.RestTemplate restTemplate, RequestExpectationManager expectationManager) ReturnRequestExpectationManagerto be used for binding with the specifiedRestTemplate.修饰符和类型方法说明Map<cn.taketoday.web.client.RestTemplate,RequestExpectationManager> MockServerRestTemplateCustomizer.getExpectationManagers()修饰符和类型方法说明static MockRestServiceServerRootUriRequestExpectationManager.bindTo(cn.taketoday.web.client.RestTemplate restTemplate, RequestExpectationManager expectationManager) Return a boundMockRestServiceServerfor the givenRestTemplate, configured withRootUriRequestExpectationManagerwhen possible.static RequestExpectationManagerRootUriRequestExpectationManager.forRestTemplate(cn.taketoday.web.client.RestTemplate restTemplate, RequestExpectationManager expectationManager) ReturnRequestExpectationManagerto be used for binding with the specifiedRestTemplate.限定符构造器说明RootUriRequestExpectationManager(String rootUri, RequestExpectationManager expectationManager) 限定符构造器说明MockServerRestTemplateCustomizer(Class<? extends RequestExpectationManager> expectationManager) Crate a newMockServerRestTemplateCustomizerinstance.MockServerRestTemplateCustomizer(Supplier<? extends RequestExpectationManager> expectationManagerSupplier) Crate a newMockServerRestTemplateCustomizerinstance. -
cn.taketoday.test.web.client中RequestExpectationManager的使用
修饰符和类型类说明classBase class forRequestExpectationManagerimplementations responsible for storing expectations and actual requests, and checking for unsatisfied expectations at the end.classSimpleRequestExpectationManagerthat matches requests to expectations sequentially, i.e. in the order of declaration of expectations.classRequestExpectationManagerthat matches requests to expectations regardless of the order of declaration of expected requests.修饰符和类型方法说明MockRestServiceServer.AbstractMockRestServiceServerBuilder.build(RequestExpectationManager manager) MockRestServiceServer.MockRestServiceServerBuilder.build(RequestExpectationManager manager) An overloaded build alternative that accepts a customRequestExpectationManager.限定符构造器说明privateMockRestServiceServer(RequestExpectationManager expectationManager) Private constructor withRequestExpectationManager.