インターフェース WebTestClientConfigurer
public interface WebTestClientConfigurer
カスタマイズを
WebTestClient.Builder にカプセル化するための契約。通常、共通の初期化のショートカットを提供したいフレームワークによって使用されます。- 導入:
- 5.0
- 作成者:
- Rossen Stoyanchev
- 関連事項:
メソッドのサマリー
修飾子と型メソッド説明voidafterConfigurerAdded(WebTestClient.Builder builder, WebHttpHandlerBuilder httpHandlerBuilder, ClientHttpConnector connector) WebTestClient.Builderのメソッドを使用して、テストクライアントの設定を変更します。
メソッドの詳細
afterConfigurerAdded
void afterConfigurerAdded(WebTestClient.Builder builder, @Nullable WebHttpHandlerBuilder httpHandlerBuilder, @Nullable ClientHttpConnector connector) WebTestClient.Builderのメソッドを使用して、テストクライアントの設定を変更します。モック WebFlux サーバーの場合は、WebHttpHandlerBuilderを使用してサーバー構成をカスタマイズします。MockMvc サーバーの場合は、MockMvcHttpConnectorを変更してWebTestClient.Builderに設定します。- パラメーター:
builder- テストクライアントの変更のための WebTestClient ビルダーhttpHandlerBuilder- モック WebFlux サーバー設定用connector- 使用中のコネクター