接口的使用
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中的类 修饰符和类型 类 说明 class
AbstractRequestExpectationManager
Base class forRequestExpectationManager
implementations responsible for storing expectations and actual requests, and checking for unsatisfied expectations at the end.class
SimpleRequestExpectationManager
SimpleRequestExpectationManager
that matches requests to expectations sequentially, i.e. in the order of declaration of expectations.class
UnorderedRequestExpectationManager
RequestExpectationManager
that matches requests to expectations regardless of the order of declaration of expected requests.参数类型为RequestExpectationManager的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 MockRestServiceServer
MockRestServiceServer.MockRestServiceServerBuilder. build(RequestExpectationManager manager)
An overloaded build alternative that accepts a customRequestExpectationManager
.