use of org.springframework.data.ldap.repository.support.LdapRepositoryFactory in project spring-data-ldap by spring-projects.
the class LdapRepositoryUnitTests method before.
@BeforeEach
void before() throws Exception {
when(ldapOperations.getObjectDirectoryMapper()).thenReturn(new DefaultObjectDirectoryMapper());
walter = new UnitTestPerson(new LdapName("cn=walter"), "Walter", "White", Collections.emptyList(), "US", "Heisenberg", "000");
hank = new UnitTestPerson(new LdapName("cn=hank"), "Hank", "Schrader", Collections.emptyList(), "US", "DEA", "000");
repository = new LdapRepositoryFactory(ldapOperations).getRepository(PersonRepository.class);
}
Aggregations