Interface ResponseActions


public interface ResponseActions
Allows for setting up responses and additional expectations. Implementations of this interface are returned by MockWebServiceServer.expect(RequestMatcher).
Since:
2.0
Author:
Arjen Poutsma, Lukas Krecan
  • Method Details

    • andExpect

      ResponseActions andExpect(RequestMatcher requestMatcher)
      Allows for further expectations to be set on the request.
      Returns:
      the request expectations
    • andRespond

      void andRespond(ResponseCreator responseCreator)
      Sets the ResponseCreator for this mock.
      Parameters:
      responseCreator - the response creator