Search in sources :

Example 1 with SelfValueItem

use of org.apache.directory.api.ldap.aci.protectedItem.SelfValueItem in project directory-ldap-api by apache.

the class ProtectedItem_SelfValueTest method initNames.

/**
 * Initialize name instances
 */
@Before
public void initNames() throws Exception {
    Set<AttributeType> colA = new HashSet<AttributeType>();
    colA.add(new AttributeType("aa"));
    colA.add(new AttributeType("bb"));
    colA.add(new AttributeType("cc"));
    Set<AttributeType> colB = new HashSet<AttributeType>();
    colB.add(new AttributeType("aa"));
    colB.add(new AttributeType("bb"));
    colB.add(new AttributeType("cc"));
    Set<AttributeType> colC = new HashSet<AttributeType>();
    colC.add(new AttributeType("bb"));
    colC.add(new AttributeType("cc"));
    colC.add(new AttributeType("dd"));
    selfValueA = new SelfValueItem(colA);
    selfValueACopy = new SelfValueItem(colA);
    selfValueB = new SelfValueItem(colB);
    selfValueC = new SelfValueItem(colC);
}
Also used : SelfValueItem(org.apache.directory.api.ldap.aci.protectedItem.SelfValueItem) AttributeType(org.apache.directory.api.ldap.model.schema.AttributeType) HashSet(java.util.HashSet) Before(org.junit.Before)

Aggregations

HashSet (java.util.HashSet)1 SelfValueItem (org.apache.directory.api.ldap.aci.protectedItem.SelfValueItem)1 AttributeType (org.apache.directory.api.ldap.model.schema.AttributeType)1 Before (org.junit.Before)1