use of com.enonic.xp.repo.impl.ReturnValues in project xp by enonic.
the class GetResultCanReadResolverTest method group_access.
@Test
public void group_access() throws Exception {
final ReturnValues returnValues = ReturnValues.create().add(IndexFieldNameNormalizer.normalize(NodeIndexPath.PERMISSIONS_READ.toString()), Arrays.asList("user:system:rmy", "group:system:my-group")).build();
assertTrue(GetResultCanReadResolver.canRead(PrincipalKeys.from(PrincipalKey.from("user:system:rmy"), PrincipalKey.from("group:system:my-group")), returnValues.get(NodeIndexPath.PERMISSIONS_READ.toString())));
}
Aggregations