インターフェース ResponseActions
- すべての既知のサブインターフェース:
RequestExpectation
- すべての既知の実装クラス:
DefaultRequestExpectation
public interface ResponseActions
リクエストの期待を設定し、レスポンスを定義するための契約。実装は
MockRestServiceServer.expect(RequestMatcher)
を通じて取得できます。- 導入:
- 3.2
- 作成者:
- Craig Walls
方法の概要
修飾子と型メソッド説明andExpect
(RequestMatcher requestMatcher) リクエストの期待値を追加します。void
andRespond
(ResponseCreator responseCreator) レスポンスを定義します。
メソッドの詳細
andExpect
リクエストの期待値を追加します。- 戻り値:
- 期待
andRespond
レスポンスを定義します。- パラメーター:
responseCreator
- レスポンスの作成者