インターフェース ResponseActions

すべての既知のサブインターフェース:
RequestExpectation
すべての既知の実装クラス:
DefaultRequestExpectation

public interface ResponseActions
リクエストの期待を設定し、レスポンスを定義するための契約。実装は MockRestServiceServer.expect(RequestMatcher) を通じて取得できます。
導入:
3.2
作成者:
Craig Walls
  • メソッドのサマリー

    修飾子と型
    メソッド
    説明
    andExpect(RequestMatcher requestMatcher)
    リクエストの期待値を追加します。
    void
    andRespond(ResponseCreator responseCreator)
    レスポンスを定義します。
  • メソッドの詳細

    • andExpect

      ResponseActions andExpect(RequestMatcher requestMatcher)
      リクエストの期待値を追加します。
      戻り値:
      期待
    • andRespond

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