use of org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper 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);
}
use of org.springframework.ldap.odm.core.impl.DefaultObjectDirectoryMapper in project spring-data-ldap by spring-projects.
the class QuerydslLdapPredicateExecutorUnitTests method before.
@BeforeEach
void before() throws Exception {
when(ldapOperations.getObjectDirectoryMapper()).thenReturn(new DefaultObjectDirectoryMapper());
repository = new QuerydslLdapPredicateExecutor<>(UnitTestPerson.class, new SpelAwareProxyProjectionFactory(), ldapOperations, new LdapMappingContext());
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");
}
Aggregations