Polish "Improve LDAP auto-configuration"

Closes gh-13136
This commit is contained in:
Stephane Nicoll
2018-05-11 14:37:32 +02:00
parent f81f50c119
commit a0a0bea427

View File

@@ -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));
}
}