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