This commit is contained in:
Madhura Bhave 2019-07-29 14:47:58 -07:00
parent 805264a13c
commit b6754f6f20
1 changed files with 4 additions and 5 deletions

View File

@ -78,8 +78,7 @@ class ReactiveUserDetailsServiceAutoConfigurationTests {
@Test @Test
void doesNotConfigureDefaultUserIfResourceServerWithJWTIsUsed() { void doesNotConfigureDefaultUserIfResourceServerWithJWTIsUsed() {
this.contextRunner.withUserConfiguration(TestSecurityConfiguration.class, JwtDecoderConfiguration.class) this.contextRunner.withUserConfiguration(JwtDecoderConfiguration.class).run((context) -> {
.run((context) -> {
assertThat(context).hasSingleBean(ReactiveJwtDecoder.class); assertThat(context).hasSingleBean(ReactiveJwtDecoder.class);
assertThat(context).doesNotHaveBean(ReactiveUserDetailsService.class); assertThat(context).doesNotHaveBean(ReactiveUserDetailsService.class);
}); });