jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1443546 - /jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserValidatorTest.java
Date Thu, 07 Feb 2013 15:19:44 GMT
Author: angela
Date: Thu Feb  7 15:19:43 2013
New Revision: 1443546

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

- resolve TODO related to OAK-343

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

Modified: jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserValidatorTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserValidatorTest.java?rev=1443546&r1=1443545&r2=1443546&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserValidatorTest.java
(original)
+++ jackrabbit/oak/trunk/oak-core/src/test/java/org/apache/jackrabbit/oak/security/user/UserValidatorTest.java
Thu Feb  7 15:19:43 2013
@@ -111,8 +111,7 @@ public class UserValidatorTest extends A
     public void createWithoutPrincipalName() throws Exception {
         try {
             User user = getUserManager().createUser("withoutPrincipalName", "pw");
-            // FIXME: use user.getPath instead (blocked by OAK-343)
-            Tree tree = root.getTree("/rep:security/rep:authorizables/rep:users/t/te/test");
+            Tree tree = root.getTree(user.getPath());
             tree.removeProperty(UserConstants.REP_PRINCIPAL_NAME);
             root.commit();
 
@@ -128,8 +127,7 @@ public class UserValidatorTest extends A
     public void createWithInvalidUUID() throws Exception {
         try {
             User user = getUserManager().createUser("withInvalidUUID", "pw");
-            // FIXME: use user.getPath instead (blocked by OAK-343)
-            Tree tree = root.getTree("/rep:security/rep:authorizables/rep:users/t/te/test");
+            Tree tree = root.getTree(user.getPath());
             tree.setProperty(JcrConstants.JCR_UUID, UUID.randomUUID().toString());
             root.commit();
 
@@ -222,7 +220,7 @@ public class UserValidatorTest extends A
     public void testDisableAdminUser() throws Exception {
         try {
             String adminId = getConfig().getConfigValue(UserConstants.PARAM_ADMIN_ID, UserConstants.DEFAULT_ADMIN_ID);
-            UserManager userMgr =  getUserManager();
+            UserManager userMgr = getUserManager();
             Authorizable admin = userMgr.getAuthorizable(adminId);
             if (admin == null) {
                 admin = userMgr.createUser(adminId, adminId);



Mime
View raw message