jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1465993 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/authorization/permission/CompiledPermissionImplTest.java
Date Tue, 09 Apr 2013 12:27:25 GMT
Author: jukka
Date: Tue Apr  9 12:27:24 2013
New Revision: 1465993

URL: http://svn.apache.org/r1465993
Log:
Fix incorrect use of ImmutableList.of()

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=1465993&r1=1465992&r2=1465993&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
Tue Apr  9 12:27:24 2013
@@ -103,9 +103,9 @@ public class CompiledPermissionImplTest 
         testNode2.setString("propName2", "strValue");
         root.commit();
 
-        allPaths = ImmutableList.of("/").of(UserConstants.DEFAULT_USER_PATH).of(node1Path).of(node2Path);
-        rootAndUsers = ImmutableList.of("/").of(UserConstants.DEFAULT_USER_PATH);
-        nodePaths = ImmutableList.of(node1Path).of(node2Path);
+        allPaths = ImmutableList.of("/", UserConstants.DEFAULT_USER_PATH, node1Path, node2Path);
+        rootAndUsers = ImmutableList.of("/", UserConstants.DEFAULT_USER_PATH);
+        nodePaths = ImmutableList.of(node1Path, node2Path);
     }
 
     @Override
@@ -141,7 +141,7 @@ public class CompiledPermissionImplTest 
 
         CompiledPermissionImpl cp = createPermissions(ImmutableSet.of(group1));
 
-        assertReadStatus(ReadStatus.DENY_THIS, cp, ImmutableList.of("/").of(node1Path).of(UserConstants.DEFAULT_USER_PATH));
+        assertReadStatus(ReadStatus.DENY_THIS, cp, ImmutableList.of("/", node1Path, UserConstants.DEFAULT_USER_PATH));
         assertReadStatus(ReadStatus.ALLOW_ALL, cp, Collections.singletonList(node2Path));
     }
 
@@ -245,7 +245,7 @@ public class CompiledPermissionImplTest 
 
         CompiledPermissionImpl cp = createPermissions(ImmutableSet.of(group1, group2));
 
-        List<String> treePaths = ImmutableList.of("/").of(UserConstants.DEFAULT_USER_PATH).of(node1Path);
+        List<String> treePaths = ImmutableList.of("/", UserConstants.DEFAULT_USER_PATH,
node1Path);
         assertReadStatus(ReadStatus.DENY_THIS, cp, treePaths);
         assertReadStatus(ReadStatus.ALLOW_NODES, cp, Collections.singletonList(node2Path));
     }



Mime
View raw message