From 210693eb6bd0cba51874ce150c73090c95d4e08b Mon Sep 17 00:00:00 2001 From: Josh Cummings Date: Thu, 25 Aug 2022 15:30:48 -0600 Subject: [PATCH] Add @Configuration Issue gh-6613 Issue gh-9401 --- .../EnableAuthorizationManagerReactiveMethodSecurityTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/src/test/java/org/springframework/security/config/annotation/method/configuration/EnableAuthorizationManagerReactiveMethodSecurityTests.java b/config/src/test/java/org/springframework/security/config/annotation/method/configuration/EnableAuthorizationManagerReactiveMethodSecurityTests.java index 4db37b61f6..e19f040fa7 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/method/configuration/EnableAuthorizationManagerReactiveMethodSecurityTests.java +++ b/config/src/test/java/org/springframework/security/config/annotation/method/configuration/EnableAuthorizationManagerReactiveMethodSecurityTests.java @@ -28,6 +28,7 @@ import reactor.util.context.Context; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; import org.springframework.security.access.AccessDeniedException; import org.springframework.security.authentication.TestingAuthenticationToken; import org.springframework.security.core.context.ReactiveSecurityContextHolder; @@ -465,6 +466,7 @@ public class EnableAuthorizationManagerReactiveMethodSecurityTests { } @EnableReactiveMethodSecurity(useAuthorizationManager = true) + @Configuration static class Config { ReactiveMessageService delegate = mock(ReactiveMessageService.class);