接口的使用
org.springframework.test.web.client.ResponseActions
使用ResponseActions的程序包 程序包 说明 org.springframework.test.web.client Contains client-side REST testing support.org.springframework.test.web.client中ResponseActions的使用
org.springframework.test.web.client中ResponseActions的子接口 修饰符和类型 接口 说明 interface
RequestExpectation
An extension ofResponseActions
that also implementsRequestMatcher
andResponseCreator
实现ResponseActions的org.springframework.test.web.client中的类 修饰符和类型 类 说明 class
DefaultRequestExpectation
Default implementation ofRequestExpectation
that simply delegates to the request matchers and the response creator it contains.返回ResponseActions的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 ResponseActions
DefaultRequestExpectation. andExpect(RequestMatcher requestMatcher)
ResponseActions
ResponseActions. andExpect(RequestMatcher requestMatcher)
Add a request expectation.ResponseActions
MockRestServiceServer. expect(ExpectedCount count, RequestMatcher matcher)
An alternative toMockRestServiceServer.expect(RequestMatcher)
that also indicates how many times the request is expected to be executed.ResponseActions
MockRestServiceServer. expect(RequestMatcher matcher)
Set up an expectation for a single HTTP request.ResponseActions
AbstractRequestExpectationManager. expectRequest(ExpectedCount count, RequestMatcher matcher)
ResponseActions
RequestExpectationManager. expectRequest(ExpectedCount count, RequestMatcher requestMatcher)
Set up a new request expectation.