Search in sources :

Example 1 with AttributeTypeItem

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

the class ProtectedItem_AttributeTypeTest 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"));
    attributeTypeA = new AttributeTypeItem(colA);
    attributeTypeACopy = new AttributeTypeItem(colA);
    attributeTypeB = new AttributeTypeItem(colB);
    attributeTypeC = new AttributeTypeItem(colC);
}
Also used : AttributeTypeItem(org.apache.directory.api.ldap.aci.protectedItem.AttributeTypeItem) AttributeType(org.apache.directory.api.ldap.model.schema.AttributeType) HashSet(java.util.HashSet) Before(org.junit.Before)

Aggregations

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