Skip to content

Commit 3f02286

Browse files
committed
Polish "Start building against Spring Security 5.7.8 snapshots"
See gh-34948
1 parent 5bd926d commit 3f02286

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/oauth2/resource/servlet/OAuth2ResourceServerAutoConfigurationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ void autoConfigurationShouldConfigureResourceServerUsingOidcIssuerUri() throws E
222222
assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue();
223223
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
224224
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
225-
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
225+
.getField(supplierJwtDecoderBean, "delegate");
226226
jwtDecoderSupplier.get();
227227
});
228228
// The last request is to the JWK Set endpoint to look up the algorithm
@@ -246,7 +246,7 @@ void autoConfigurationShouldConfigureResourceServerUsingOidcRfc8414IssuerUri() t
246246
assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue();
247247
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
248248
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
249-
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
249+
.getField(supplierJwtDecoderBean, "delegate");
250250
jwtDecoderSupplier.get();
251251
});
252252
// The last request is to the JWK Set endpoint to look up the algorithm
@@ -271,7 +271,7 @@ void autoConfigurationShouldConfigureResourceServerUsingOAuthIssuerUri() throws
271271
assertThat(context.containsBean("jwtDecoderByIssuerUri")).isTrue();
272272
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
273273
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
274-
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
274+
.getField(supplierJwtDecoderBean, "delegate");
275275
jwtDecoderSupplier.get();
276276
});
277277
// The last request is to the JWK Set endpoint to look up the algorithm
@@ -548,7 +548,7 @@ void autoConfigurationShouldConfigureAudienceValidatorIfPropertyProvidedAndIssue
548548
.run((context) -> {
549549
SupplierJwtDecoder supplierJwtDecoderBean = context.getBean(SupplierJwtDecoder.class);
550550
Supplier<JwtDecoder> jwtDecoderSupplier = (Supplier<JwtDecoder>) ReflectionTestUtils
551-
.getField(supplierJwtDecoderBean, "jwtDecoderSupplier");
551+
.getField(supplierJwtDecoderBean, "delegate");
552552
JwtDecoder jwtDecoder = jwtDecoderSupplier.get();
553553
validate(issuerUri, jwtDecoder);
554554
});

0 commit comments

Comments
 (0)