Skip to content

Commit a0a0bea

Browse files
committed
Polish "Improve LDAP auto-configuration"
Closes gh-13136
1 parent f81f50c commit a0a0bea

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

spring-boot-project/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/ldap/LdapAutoConfigurationTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,7 @@ public void contextSourceWithExtraCustomization() {
101101
@Test
102102
public void templateExists() {
103103
this.contextRunner.withPropertyValues("spring.ldap.urls:ldap://localhost:389")
104-
.run(context -> assertThat(
105-
context.getBeanNamesForType(LdapTemplate.class)).hasSize(1));
104+
.run(context -> assertThat(context).hasSingleBean(LdapTemplate.class));
106105
}
107106

108107
}

0 commit comments

Comments
 (0)