インターフェース ResponseActions
public interface ResponseActions
レスポンスと追加の期待を設定できます。このインターフェースの実装は
MockWebServiceServer.expect(RequestMatcher) によって返されます。- 導入:
- 2.0
方法の概要
修飾子と型メソッド説明andExpect(RequestMatcher requestMatcher) リクエストにさらに期待を設定することができます。voidandRespond(ResponseCreator responseCreator) このモックのResponseCreatorを設定します。
方法の詳細
andExpect
リクエストにさらに期待を設定することができます。- 戻り値:
- リクエストの期待
andRespond
このモックのResponseCreatorを設定します。- パラメーター:
responseCreator- レスポンス作成者