See gh-42503
This commit is contained in:
Johnny Lim
2024-10-03 14:25:57 +09:00
committed by Stéphane Nicoll
parent f29d49211f
commit 1585c5a109
6 changed files with 15 additions and 15 deletions

View File

@@ -56,8 +56,7 @@ class OpenLdapContainerConnectionDetailsFactoryIntegrationTests {
void connectionCanBeMadeToLdapContainer() {
List<String> cn = this.ldapTemplate.search(LdapQueryBuilder.query().where("objectclass").is("dcObject"),
(AttributesMapper<String>) (attributes) -> attributes.get("dc").get().toString());
assertThat(cn).hasSize(1);
assertThat(cn.get(0)).isEqualTo("example");
assertThat(cn).singleElement().isEqualTo("example");
}
@Configuration(proxyBeanMethods = false)