Search in sources :

Example 1 with ClassesItem

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

the class ClassesItemTest method initNames.

/**
 * Initialize classesItem instances
 */
@Before
public void initNames() throws Exception {
    classesItemA = new ClassesItem(new SubstringNode("aa"));
    classesItemACopy = new ClassesItem(new SubstringNode("aa"));
    classesItemB = new ClassesItem(new SubstringNode("aa"));
    classesItemC = new ClassesItem(new SubstringNode("cc"));
}
Also used : ClassesItem(org.apache.directory.api.ldap.aci.protectedItem.ClassesItem) SubstringNode(org.apache.directory.api.ldap.model.filter.SubstringNode) Before(org.junit.Before)

Example 2 with ClassesItem

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

the class ProtectedItem_ClassesTest method initNames.

/**
 * Initialize name instances
 */
@Before
public void initNames() throws Exception {
    ExprNode filterA = FilterParser.parse("(&(cn=test)(sn=test))");
    ExprNode filterB = FilterParser.parse("(&(cn=test)(sn=test))");
    ExprNode filterC = FilterParser.parse("(&(cn=sample)(sn=sample))");
    classesA = new ClassesItem(filterA);
    classesACopy = new ClassesItem(filterA);
    classesB = new ClassesItem(filterB);
    classesC = new ClassesItem(filterC);
}
Also used : ExprNode(org.apache.directory.api.ldap.model.filter.ExprNode) ClassesItem(org.apache.directory.api.ldap.aci.protectedItem.ClassesItem) Before(org.junit.Before)

Aggregations

ClassesItem (org.apache.directory.api.ldap.aci.protectedItem.ClassesItem)2 Before (org.junit.Before)2 ExprNode (org.apache.directory.api.ldap.model.filter.ExprNode)1 SubstringNode (org.apache.directory.api.ldap.model.filter.SubstringNode)1