diff --git a/messaging/src/test/java/org/springframework/security/messaging/handler/invocation/reactive/AuthenticationPrincipalArgumentResolverTests.java b/messaging/src/test/java/org/springframework/security/messaging/handler/invocation/reactive/AuthenticationPrincipalArgumentResolverTests.java index f33d50d0083..c2748493cf5 100644 --- a/messaging/src/test/java/org/springframework/security/messaging/handler/invocation/reactive/AuthenticationPrincipalArgumentResolverTests.java +++ b/messaging/src/test/java/org/springframework/security/messaging/handler/invocation/reactive/AuthenticationPrincipalArgumentResolverTests.java @@ -83,7 +83,7 @@ private void currentUserOnMonoUserDetails(@CurrentUser Mono user) { @Test public void resolveArgumentWhenExpressionThenFound() { Authentication authentication = TestAuthentication.authenticatedUser(); - Mono result = (Mono) this.resolver.resolveArgument(arg0("authenticationPrincipalExpression"), null) + Mono result = (Mono) this.resolver.resolveArgument(arg0("authenticationPrincipalExpression"), null) .subscriberContext(ReactiveSecurityContextHolder.withAuthentication(authentication)) .block(); assertThat(result.block()).isEqualTo(authentication.getName());