use of org.apache.syncope.core.provisioning.api.IntAttrName in project syncope by apache.
the class IntAttrNameParserTest method enclosingGroup.
@Test
public void enclosingGroup() throws ParseException {
IntAttrName intAttrName = intAttrNameParser.parse("groups[readers].cn", AnyTypeKind.USER);
assertNotNull(intAttrName);
assertEquals(AnyTypeKind.GROUP, intAttrName.getAnyTypeKind());
assertNull(intAttrName.getField());
assertEquals("cn", intAttrName.getSchemaName());
assertEquals(SchemaType.DERIVED, intAttrName.getSchemaType());
assertEquals("readers", intAttrName.getEnclosingGroup());
assertNull(intAttrName.getMembershipOfGroup());
assertNull(intAttrName.getRelatedAnyObject());
assertNull(intAttrName.getPrivilegesOfApplication());
}
use of org.apache.syncope.core.provisioning.api.IntAttrName in project syncope by apache.
the class IntAttrNameParserTest method membership.
@Test
public void membership() throws ParseException {
IntAttrName intAttrName = intAttrNameParser.parse("memberships[top].cn", AnyTypeKind.USER);
assertNotNull(intAttrName);
assertEquals(AnyTypeKind.USER, intAttrName.getAnyTypeKind());
assertNull(intAttrName.getField());
assertEquals("cn", intAttrName.getSchemaName());
assertEquals(SchemaType.DERIVED, intAttrName.getSchemaType());
assertNull(intAttrName.getEnclosingGroup());
assertEquals("top", intAttrName.getMembershipOfGroup());
assertNull(intAttrName.getRelatedAnyObject());
assertNull(intAttrName.getPrivilegesOfApplication());
}
Aggregations