接口 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

      ResponseActions andExpect(RequestMatcher requestMatcher)
      Add a request expectation.
      返回:
      the expectation
    • andRespond

      void andRespond(ResponseCreator responseCreator)
      Define the response.
      参数:
      responseCreator - the creator of the response