Skip to content

Commit

Permalink
Test Meta-Annotation Class Type Support in Reactive
Browse files Browse the repository at this point in the history
Issue gh-15747
  • Loading branch information
jzheaux committed Sep 16, 2024
1 parent 75fd84c commit 2d4c498
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,15 @@ public void adviseWhenPrePostEnabledThenEachInterceptorRunsExactlyOnce() {
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 {
Expand Down

0 comments on commit 2d4c498

Please sign in to comment.