接口的使用
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的子接口 修饰符和类型 接口 说明 interfaceRequestExpectationAn extension ofResponseActionsthat also implementsRequestMatcherandResponseCreator实现ResponseActions的org.springframework.test.web.client中的类 修饰符和类型 类 说明 classDefaultRequestExpectationDefault implementation ofRequestExpectationthat simply delegates to the request matchers and the response creator it contains.返回ResponseActions的org.springframework.test.web.client中的方法 修饰符和类型 方法 说明 ResponseActionsDefaultRequestExpectation. andExpect(RequestMatcher requestMatcher)ResponseActionsResponseActions. andExpect(RequestMatcher requestMatcher)Add a request expectation.ResponseActionsMockRestServiceServer. expect(ExpectedCount count, RequestMatcher matcher)An alternative toMockRestServiceServer.expect(RequestMatcher)that also indicates how many times the request is expected to be executed.ResponseActionsMockRestServiceServer. expect(RequestMatcher matcher)Set up an expectation for a single HTTP request.ResponseActionsAbstractRequestExpectationManager. expectRequest(ExpectedCount count, RequestMatcher matcher)ResponseActionsRequestExpectationManager. expectRequest(ExpectedCount count, RequestMatcher requestMatcher)Set up a new request expectation.