mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 12:32:13 +00:00
Test Meta-Annotation Class Type Support in Reactive
Issue gh-15747
This commit is contained in:
parent
75fd84ce16
commit
2d4c498c3b
@ -466,6 +466,15 @@ public class PrePostReactiveMethodSecurityConfigurationTests {
|
|||||||
verify(expressionHandler, times(4)).createEvaluationContext(any(Authentication.class), any());
|
verify(expressionHandler, times(4)).createEvaluationContext(any(Authentication.class), any());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// gh-15721
|
||||||
|
@Test
|
||||||
|
@WithMockUser(roles = "uid")
|
||||||
|
public void methodWhenMetaAnnotationPropertiesHasClassProperties() {
|
||||||
|
this.spring.register(MetaAnnotationPlaceholderConfig.class).autowire();
|
||||||
|
MetaAnnotationService service = this.spring.getContext().getBean(MetaAnnotationService.class);
|
||||||
|
assertThat(service.getIdPath("uid").block()).isEqualTo("uid");
|
||||||
|
}
|
||||||
|
|
||||||
@Configuration
|
@Configuration
|
||||||
@EnableReactiveMethodSecurity
|
@EnableReactiveMethodSecurity
|
||||||
static class MethodSecurityServiceEnabledConfig {
|
static class MethodSecurityServiceEnabledConfig {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user