LDAP-282: Minor tweaks to naming in LdapNameBuilder. Added methods for appending distinguished name strings.

This commit is contained in:
Mattias Hellborg Arthursson
2013-11-18 13:36:16 +01:00
parent 751bdef3b9
commit f89daf692e
8 changed files with 107 additions and 14 deletions

View File

@@ -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");

View File

@@ -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");