diff --git a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java index 2863a31241..72e1e64d0c 100644 --- a/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java +++ b/config/src/test/java/org/springframework/security/config/annotation/web/configurers/oauth2/server/resource/OAuth2ResourceServerConfigurerTests.java @@ -1300,11 +1300,7 @@ public class OAuth2ResourceServerConfigurerTests { .and() .oauth2ResourceServer() .jwt(); - } - - @Bean - JwtDecoder jwtDecoder() { - return mock(JwtDecoder.class); + // @formatter:on } }