接口的使用
org.springframework.test.web.client.RequestExpectationManager
使用RequestExpectationManager的程序包 程序包 说明 org.springframework.test.web.client Contains client-side REST testing support.org.springframework.test.web.client中RequestExpectationManager的使用
实现RequestExpectationManager的org.springframework.test.web.client中的类 修饰符和类型 类 说明 classAbstractRequestExpectationManagerBase class forRequestExpectationManagerimplementations responsible for storing expectations and actual requests, and checking for unsatisfied expectations at the end.classSimpleRequestExpectationManagerSimpleRequestExpectationManagerthat matches requests to expectations sequentially, i.e. in the order of declaration of expectations.classUnorderedRequestExpectationManagerRequestExpectationManagerthat matches requests to expectations regardless of the order of declaration of expected requests.参数类型为RequestExpectationManager的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 MockRestServiceServerMockRestServiceServer.MockRestServiceServerBuilder. build(RequestExpectationManager manager)An overloaded build alternative that accepts a customRequestExpectationManager.