インターフェースの使用
org.springframework.test.web.reactive.server.WebTestClient.MockServerSpec
org.springframework.test.web.reactive.server 内の WebTestClient.MockServerSpec 使用
修飾子と型インターフェース説明static interface
WebTestClient.MockServerSpec<B extends WebTestClient.MockServerSpec<B>>
サーバーなしでテストをセットアップするための基本仕様。修飾子と型インターフェース説明static interface
WebFluxConfigurer
と同等で内部的に委譲するコントローラー構成をカスタマイズするための仕様。static interface
ルーター関数の構成をカスタマイズするための仕様。修飾子と型メソッド説明static WebTestClient.MockServerSpec<?>
WebTestClient.bindToApplicationContext
(ApplicationContext applicationContext) このオプションを使用して、アプリケーションの Spring 構成またはそのサブセットからサーバーをセットアップします。static WebTestClient.MockServerSpec<?>
WebTestClient.bindToWebHandler
(WebHandler webHandler) 特定の WebHandler をターゲットとする「モック」サーバーとの統合テスト。修飾子と型メソッド説明default void
MockServerConfigurer.afterConfigureAdded
(WebTestClient.MockServerSpec<?> serverSpec) すぐに呼び出されます。