Author: angela
Date: Wed Aug 22 13:00:48 2012
New Revision: 1376028

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

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

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=1376028&r1=1376027&r2=1376028&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
 Wed Aug 22 13:00:48 2012
@@ -16,6 +16,20 @@
  */
 package org.apache.jackrabbit.oak.jcr.security.user;
 
+import java.security.Principal;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import javax.jcr.Credentials;
+import javax.jcr.Node;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
+import javax.jcr.SimpleCredentials;
+import javax.jcr.UnsupportedRepositoryOperationException;
+import javax.jcr.Value;
+
 import org.apache.jackrabbit.api.security.user.Authorizable;
 import org.apache.jackrabbit.api.security.user.AuthorizableExistsException;
 import org.apache.jackrabbit.api.security.user.Group;
@@ -27,20 +41,6 @@ import org.apache.jackrabbit.test.NotExe
 import org.junit.Ignore;
 import org.junit.Test;
 
-import javax.jcr.Credentials;
-import javax.jcr.Node;
-import javax.jcr.RepositoryException;
-import javax.jcr.Session;
-import javax.jcr.SimpleCredentials;
-import javax.jcr.UnsupportedRepositoryOperationException;
-import javax.jcr.Value;
-import java.security.Principal;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
 public class UserManagerImplTest extends AbstractUserTest {
 
     private String getTestUserId(Principal p) throws RepositoryException {
@@ -802,11 +802,10 @@ public class UserManagerImplTest extends
         Principal p = getTestPrincipal();
         String uid = p.getName();
 
-        String usersPath = "/home/users"; // TODO
-
         List<String> invalid = new ArrayList<String>();
         invalid.add("../../path");
-        invalid.add(usersPath + "/../test");
+        invalid.add(UserConstants.DEFAULT_USER_PATH + "/../test");
+        invalid.add("../../../home/users/test");
 
         for (String path : invalid) {
             try {


Reply via email to