mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-10 03:19:01 +00:00
Polish "Improve LDAP auto-configuration"
Closes gh-13136
This commit is contained in:
+1
-2
@@ -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