Commit a0a0bea4 authored by Stephane Nicoll's avatar Stephane Nicoll

Polish "Improve LDAP auto-configuration"

Closes gh-13136
parent f81f50c1
...@@ -101,8 +101,7 @@ public class LdapAutoConfigurationTests { ...@@ -101,8 +101,7 @@ public class LdapAutoConfigurationTests {
@Test @Test
public void templateExists() { public void templateExists() {
this.contextRunner.withPropertyValues("spring.ldap.urls:ldap://localhost:389") this.contextRunner.withPropertyValues("spring.ldap.urls:ldap://localhost:389")
.run(context -> assertThat( .run(context -> assertThat(context).hasSingleBean(LdapTemplate.class));
context.getBeanNamesForType(LdapTemplate.class)).hasSize(1));
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment