Add @Configuration

Issue gh-6613
Issue gh-9401
This commit is contained in:
Josh Cummings 2022-08-25 15:30:48 -06:00
parent 84f765a89c
commit 210693eb6b
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
1 changed files with 2 additions and 0 deletions

View File

@ -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);