インターフェース ResponseActions


public interface ResponseActions
レスポンスと追加の期待を設定できます。このインターフェースの実装は MockWebServiceServer.expect(RequestMatcher) によって返されます。
導入:
2.0
  • 方法の詳細

    • andExpect

      ResponseActions andExpect(RequestMatcher requestMatcher)
      リクエストにさらに期待を設定することができます。
      戻り値:
      リクエストの期待
    • andRespond

      void andRespond(ResponseCreator responseCreator)
      このモックの ResponseCreator を設定します。
      パラメーター:
      responseCreator - レスポンス作成者