From b6754f6f20ef786da0ecb542fe8b14bc01b88d62 Mon Sep 17 00:00:00 2001 From: Madhura Bhave Date: Mon, 29 Jul 2019 14:47:58 -0700 Subject: [PATCH] Fix test --- ...ReactiveUserDetailsServiceAutoConfigurationTests.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/reactive/ReactiveUserDetailsServiceAutoConfigurationTests.java b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/reactive/ReactiveUserDetailsServiceAutoConfigurationTests.java index dc8ea647b69..1efdbdfa706 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/reactive/ReactiveUserDetailsServiceAutoConfigurationTests.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/security/reactive/ReactiveUserDetailsServiceAutoConfigurationTests.java @@ -78,11 +78,10 @@ class ReactiveUserDetailsServiceAutoConfigurationTests { @Test void doesNotConfigureDefaultUserIfResourceServerWithJWTIsUsed() { - this.contextRunner.withUserConfiguration(TestSecurityConfiguration.class, JwtDecoderConfiguration.class) - .run((context) -> { - assertThat(context).hasSingleBean(ReactiveJwtDecoder.class); - assertThat(context).doesNotHaveBean(ReactiveUserDetailsService.class); - }); + this.contextRunner.withUserConfiguration(JwtDecoderConfiguration.class).run((context) -> { + assertThat(context).hasSingleBean(ReactiveJwtDecoder.class); + assertThat(context).doesNotHaveBean(ReactiveUserDetailsService.class); + }); } @Test