From 3f022867f4c06edca89598f5d6972c5bab919bd3 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Wed, 12 Apr 2023 12:21:27 +0200 Subject: [PATCH] Polish "Start building against Spring Security 5.7.8 snapshots" See gh-34948 --- .../OAuth2ResourceServerAutoConfigurationTests.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java index 7b1fb56a72..e550f5ff05 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java @@ -222,7 +222,7 @@ class OAuth2ResourceServerAutoConfigurationTests { assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue(); SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class); Supplier jwtDecoderSupplier = (Supplier) ReflectionTestUtils - .getField(supplierJwtDecoderBean, "jwtDecoderSupplier"); + .getField(supplierJwtDecoderBean, "delegate"); jwtDecoderSupplier.get(); }); // The last request is to the JWK Set endpoint to look up the algorithm @@ -246,7 +246,7 @@ class OAuth2ResourceServerAutoConfigurationTests { assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue(); SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class); Supplier jwtDecoderSupplier = (Supplier) ReflectionTestUtils - .getField(supplierJwtDecoderBean, "jwtDecoderSupplier"); + .getField(supplierJwtDecoderBean, "delegate"); jwtDecoderSupplier.get(); }); // The last request is to the JWK Set endpoint to look up the algorithm @@ -271,7 +271,7 @@ class OAuth2ResourceServerAutoConfigurationTests { assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue(); SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class); Supplier jwtDecoderSupplier = (Supplier) ReflectionTestUtils - .getField(supplierJwtDecoderBean, "jwtDecoderSupplier"); + .getField(supplierJwtDecoderBean, "delegate"); jwtDecoderSupplier.get(); }); // The last request is to the JWK Set endpoint to look up the algorithm @@ -548,7 +548,7 @@ class OAuth2ResourceServerAutoConfigurationTests { .run((context) -> { SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class); Supplier jwtDecoderSupplier = (Supplier) ReflectionTestUtils - .getField(supplierJwtDecoderBean, "jwtDecoderSupplier"); + .getField(supplierJwtDecoderBean, "delegate"); JwtDecoder jwtDecoder = jwtDecoderSupplier.get(); validate(issuerUri, jwtDecoder); });