See gh-11783
This commit is contained in:
Raja Kolli
2018-01-26 01:30:43 +05:30
committed by Stephane Nicoll
parent fe7d7e2fc9
commit 64c324612e
3 changed files with 8 additions and 11 deletions

View File

@@ -62,7 +62,7 @@ public class DataLdapTestIntegrationTests {
public void testRepository() {
LdapQuery ldapQuery = LdapQueryBuilder.query().where("cn").is("Bob Smith");
Optional<ExampleEntry> entry = this.exampleRepository.findOne(ldapQuery);
assertThat(entry.isPresent());
assertThat(entry.isPresent()).isTrue();
assertThat(entry.get().getDn()).isEqualTo(LdapUtils
.newLdapName("cn=Bob Smith,ou=company1,c=Sweden,dc=spring,dc=org"));
assertThat(this.ldapTemplate.findOne(ldapQuery, ExampleEntry.class).getDn())