jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1511198 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerTest.java
Date Wed, 07 Aug 2013 07:30:43 GMT
Author: angela
Date: Wed Aug  7 07:30:42 2013
New Revision: 1511198

URL: http://svn.apache.org/r1511198
Log:
minor improvement

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

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerTest.java?rev=1511198&r1=1511197&r2=1511198&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerTest.java
Wed Aug  7 07:30:42 2013
@@ -22,7 +22,6 @@ import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import javax.jcr.Credentials;
-import javax.jcr.LoginException;
 import javax.jcr.RepositoryException;
 import javax.jcr.Session;
 import javax.jcr.SimpleCredentials;
@@ -87,17 +86,17 @@ public class UserManagerTest extends Abs
     
     @Test
     // FIXME clarify expectations, move to auto refresh related tests. See OAK-938.
-    public void testGetAuthorizableMultipleSessions() throws LoginException, RepositoryException
{
+    public void testAutoRefreshSession() throws RepositoryException {
         Session adminSession = null;
         SimpleCredentials credentials = new SimpleCredentials("admin", "admin".toCharArray());
         credentials.setAttribute("refresh-interval", 0);
 
-        String uid = createUserId();
         User user = null;
         try {
             adminSession = superuser.getRepository().login(credentials);
             UserManager adminUserManager = ((JackrabbitSession) adminSession).getUserManager();
 
+            String uid = createUserId();
             user = userMgr.createUser(uid, uid);
             superuser.save();
 



Mime
View raw message