jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1483282 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CompiledPermissionImplTest.java
Date Thu, 16 May 2013 09:44:36 GMT
Author: angela
Date: Thu May 16 09:44:36 2013
New Revision: 1483282

URL: http://svn.apache.org/r1483282
Log:
OAK-527: permissions (tests)

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CompiledPermissionImplTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CompiledPermissionImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CompiledPermissionImplTest.java?rev=1483282&r1=1483281&r2=1483282&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CompiledPermissionImplTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CompiledPermissionImplTest.java
Thu May 16 09:44:36 2013
@@ -377,7 +377,7 @@ public class CompiledPermissionImplTest 
         setupPermission(group1, node1Path, true, 0, new String[] {JCR_READ}, createGlobRestriction("/*"));
 
         CompiledPermissionImpl cp = createPermissions(ImmutableSet.of(group1));
-        assertReadStatus(ReadStatus.DENY_THIS, cp, node1Path);
+        assertReadStatus(ReadStatus.DENY_THIS, ReadStatus.ALLOW_THIS, cp, ImmutableList.<String>of(node1Path));
         assertReadStatus(ReadStatus.ALLOW_THIS, cp, node2Path);
 
         cp = createPermissions(ImmutableSet.of(group1, group2));
@@ -385,7 +385,7 @@ public class CompiledPermissionImplTest 
         assertReadStatus(ReadStatus.ALLOW_THIS, cp, node2Path);
 
         cp = createPermissions(ImmutableSet.of(group1, group2, group3));
-        assertReadStatus(ReadStatus.DENY_THIS, cp, node1Path);
+        assertReadStatus(ReadStatus.DENY_THIS, ReadStatus.ALLOW_THIS, cp, ImmutableList.<String>of(node1Path));
         assertReadStatus(ReadStatus.ALLOW_THIS, cp, node2Path);
     }
 



Mime
View raw message