Polish "Improve LDAP auto-configuration"
Closes gh-13136
This commit is contained in:
@@ -101,8 +101,7 @@ public class LdapAutoConfigurationTests {
|
||||
@Test
|
||||
public void templateExists() {
|
||||
this.contextRunner.withPropertyValues("spring.ldap.urls:ldap://localhost:389")
|
||||
.run(context -> assertThat(
|
||||
context.getBeanNamesForType(LdapTemplate.class)).hasSize(1));
|
||||
.run(context -> assertThat(context).hasSingleBean(LdapTemplate.class));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user