LDAP-282: Minor tweaks to naming in LdapNameBuilder. Added methods for appending distinguished name strings.
This commit is contained in:
@@ -114,7 +114,7 @@ public class LdapTemplateOdmWithNoDnAnnotationsITest extends AbstractLdapTemplat
|
||||
@Test
|
||||
public void testCreate() {
|
||||
Person person = new Person();
|
||||
person.setDn(LdapNameBuilder.newLdapName("ou=company1,ou=Sweden")
|
||||
person.setDn(LdapNameBuilder.newInstance("ou=company1,ou=Sweden")
|
||||
.add("cn", "New Person").build());
|
||||
person.setCommonName("New Person");
|
||||
person.setSurname("Person");
|
||||
|
||||
@@ -173,7 +173,7 @@ public class RepositoryScanITest extends AbstractLdapTemplateIntegrationTest {
|
||||
@Test
|
||||
public void testCreate() {
|
||||
Person person = new Person();
|
||||
LdapName dn = LdapNameBuilder.newLdapName("ou=company1,ou=Sweden")
|
||||
LdapName dn = LdapNameBuilder.newInstance("ou=company1,ou=Sweden")
|
||||
.add("cn", "New Person").build();
|
||||
person.setDn(dn);
|
||||
person.setCommonName("New Person");
|
||||
|
||||
Reference in New Issue
Block a user