パッケージ org.springframework.security.test.context.support
インターフェースのサマリー インターフェース 説明 WithSecurityContextFactory<A extends java.lang.annotation.Annotation> TestSecurityContextHolder
に取り込まれるSecurityContext
を作成するために WithUserTestExcecutionListener と連携する API。クラスのサマリー クラス 説明 ReactorContextTestExecutionListener TestSecurityContextHolder からの認証を使用して Reactor コンテキストをセットアップし、テストの最後に Reactor コンテキストをクリアします。WithSecurityContextTestExecutionListener テストメソッドまたはクラスレベルでWithSecurityContext
でアノテーションされたアノテーションを見つけるTestExecutionListener
。列挙型のサマリー 列挙型 説明 TestExecutionEvent TestExecutionListener
のメソッドのイベントを表しますアノテーション型のサマリー アノテーション型 説明 WithAnonymousUser WithSecurityContextTestExecutionListener
と共に使用すると、このアノテーションをテストメソッドに追加して、匿名ユーザーでの実行をエミュレートできます。WithMockUser WithSecurityContextTestExecutionListener
と共に使用する場合、このアノテーションをテストメソッドに追加して、モックされたユーザーでの実行をエミュレートできます。WithSecurityContext 使用するSecurityContext
を決定するためのアノテーション。WithUserDetails WithSecurityContextTestExecutionListener
と共に使用する場合、このアノテーションをテストメソッドに追加して、UserDetailsService
から返されたUserDetails
での実行をエミュレートできます。