接口 ResponseActions
- 所有已知子接口:
RequestExpectation
- 所有已知实现类:
DefaultRequestExpectation
public interface ResponseActions
A contract for setting up request expectations and defining a response. Implementations can be obtained throughMockRestServiceServer.expect(RequestMatcher).- 从以下版本开始:
- 3.2
- 作者:
- Craig Walls
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 ResponseActionsandExpect(RequestMatcher requestMatcher)Add a request expectation.voidandRespond(ResponseCreator responseCreator)Define the response.
方法详细资料
andExpect
ResponseActions andExpect(RequestMatcher requestMatcher)
Add a request expectation.- 返回:
- the expectation
andRespond
void andRespond(ResponseCreator responseCreator)
Define the response.- 参数:
responseCreator- the creator of the response