インターフェースの使用
org.springframework.test.web.client.ResponseCreator
org.springframework.test.web.client 内の ResponseCreator 使用
修飾子と型インターフェース説明interface
RequestMatcher
およびResponseCreator
も実装するResponseActions
の拡張修飾子と型クラス説明class
リクエストマッチャーとそれに含まれるレスポンス作成者に単に委譲するRequestExpectation
のデフォルト実装。修飾子と型メソッド説明void
DefaultRequestExpectation.andRespond
(ResponseCreator responseCreator) void
ResponseActions.andRespond
(ResponseCreator responseCreator) レスポンスを定義します。org.springframework.test.web.client.response 内の ResponseCreator 使用
修飾子と型クラス説明class
レスポンスの詳細を追加するためのビルダースタイルのメソッドを備えたResponseCreator
。class
ClientHttpRequestFactory
を介してリクエストを実行し、レスポンスを取得するResponseCreator
。修飾子と型メソッド説明static ResponseCreator
MockRestResponseCreators.withException
(IOExceptionSE ex) ResponseCreator
と内部アプリケーションIOException