Test Meta-Annotation Class Type Support in Reactive

Issue gh-15747
This commit is contained in:
Josh Cummings 2024-09-12 15:42:48 -06:00
parent 75fd84ce16
commit 2d4c498c3b
1 changed files with 9 additions and 0 deletions

View File

@ -466,6 +466,15 @@ public class PrePostReactiveMethodSecurityConfigurationTests {
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
@EnableReactiveMethodSecurity
static class MethodSecurityServiceEnabledConfig {