jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r1511200 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/UserManagerTest.java
Date Wed, 07 Aug 2013 07:36:33 GMT
Author: mduerig
Date: Wed Aug  7 07:36:32 2013
New Revision: 1511200

URL: http://svn.apache.org/r1511200
Log:
OAK-938: UserManager does not honour session refresh settings
Don't use (wrong) hard coded value for refresh interval attribute name

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=1511200&r1=1511199&r2=1511200&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:36:32 2013
@@ -33,6 +33,7 @@ import org.apache.jackrabbit.api.securit
 import org.apache.jackrabbit.api.security.user.Group;
 import org.apache.jackrabbit.api.security.user.User;
 import org.apache.jackrabbit.api.security.user.UserManager;
+import org.apache.jackrabbit.oak.jcr.RepositoryImpl;
 import org.apache.jackrabbit.oak.spi.security.principal.PrincipalImpl;
 import org.apache.jackrabbit.oak.spi.security.principal.EveryonePrincipal;
 import org.apache.jackrabbit.oak.spi.security.user.UserConstants;
@@ -89,7 +90,7 @@ public class UserManagerTest extends Abs
     public void testAutoRefreshSession() throws RepositoryException {
         Session adminSession = null;
         SimpleCredentials credentials = new SimpleCredentials("admin", "admin".toCharArray());
-        credentials.setAttribute("refresh-interval", 0);
+        credentials.setAttribute(RepositoryImpl.REFRESH_INTERVAL, 0);
 
         User user = null;
         try {



Mime
View raw message