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