jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1376480 - in /jackrabbit/oak/trunk: oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserProviderImplTest.java oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerImplTest.java
Date Thu, 23 Aug 2012 13:27:10 GMT
Author: angela
Date: Thu Aug 23 13:27:09 2012
New Revision: 1376480

URL: http://svn.apache.org/viewvc?rev=1376480&view=rev
Log:
OAK-50 : Implement User Management (WIP)

Modified:
    jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserProviderImplTest.java
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerImplTest.java

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserProviderImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserProviderImplTest.java?rev=1376480&r1=1376479&r2=1376480&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserProviderImplTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserProviderImplTest.java
Thu Aug 23 13:27:09 2012
@@ -53,6 +53,7 @@ import static org.junit.Assert.fail;
  *
  * TODO: create tests with custom config that persists changes (currently fails since config
used in UserValidator is different)
  * TODO: add tests for setProtectedProperty (might still be refactored...)
+ * TODO: add tests for findAuthorizables once implementation is ready
  */
 public class UserProviderImplTest extends AbstractOakTest {
 
@@ -348,7 +349,6 @@ public class UserProviderImplTest extend
         assertEquals(userID, up.getAuthorizableId(user, Type.AUTHORIZABLE));
         assertNull(up.getAuthorizableId(user, Type.GROUP));
 
-
         String groupID = "visitors";
         Tree group = up.createGroup(groupID, null);
         assertEquals(groupID, up.getAuthorizableId(group, Type.GROUP));

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerImplTest.java?rev=1376480&r1=1376479&r2=1376480&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerImplTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerImplTest.java
Thu Aug 23 13:27:09 2012
@@ -728,8 +728,8 @@ public class UserManagerImplTest extends
 
     @Test
     public void testEnforceAuthorizableFolderHierarchy() throws RepositoryException {
-        AuthorizableImpl authImpl = (AuthorizableImpl) userMgr.getAuthorizable(superuser.getUserID());
-        Node userNode = authImpl.getNode();
+        Authorizable auth = userMgr.getAuthorizable(superuser.getUserID());
+        Node userNode = superuser.getNode(auth.getPath());
 
         Node folder = userNode.addNode("folder", UserConstants.NT_REP_AUTHORIZABLE_FOLDER);
         String path = folder.getPath();



Mime
View raw message