Search in sources :

Example 1 with Name

use of org.apache.directory.api.ldap.aci.UserClass.Name in project directory-ldap-api by apache.

the class UserClass_NameTest method initNames.

/**
 * Initialize name instances
 */
@Before
public void initNames() throws LdapInvalidDnException {
    Set<String> dnSetA = new HashSet<>();
    dnSetA.add(new Dn("a=aa").getNormName());
    dnSetA.add(new Dn("b=bb").getNormName());
    Set<String> dnSetB = new HashSet<>();
    dnSetB.add(new Dn("b=bb").getNormName());
    dnSetB.add(new Dn("a=aa").getNormName());
    Set<String> dnSetC = new HashSet<>();
    dnSetC.add(new Dn("a=aa").getNormName());
    dnSetC.add(new Dn("b=bb").getNormName());
    Set<String> dnSetD = new HashSet<>();
    dnSetD.add(new Dn("b=bb").getNormName());
    dnSetD.add(new Dn("c=cc").getNormName());
    nameA = new Name(dnSetA);
    nameACopy = new Name(dnSetB);
    nameB = new Name(dnSetC);
    nameC = new Name(dnSetD);
}
Also used : Dn(org.apache.directory.api.ldap.model.name.Dn) HashSet(java.util.HashSet) Name(org.apache.directory.api.ldap.aci.UserClass.Name) Before(org.junit.Before)

Aggregations

HashSet (java.util.HashSet)1 Name (org.apache.directory.api.ldap.aci.UserClass.Name)1 Dn (org.apache.directory.api.ldap.model.name.Dn)1 Before (org.junit.Before)1