jackrabbit-oak-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r1466863 - /jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/AbstractEvaluationTest.java
Date Thu, 11 Apr 2013 12:53:13 GMT
Author: angela
Date: Thu Apr 11 12:53:12 2013
New Revision: 1466863

URL: http://svn.apache.org/r1466863
Log:
OAK-527: permissions (WIP: tests)

Modified:
    jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/AbstractEvaluationTest.java

Modified: jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/AbstractEvaluationTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/AbstractEvaluationTest.java?rev=1466863&r1=1466862&r2=1466863&view=diff
==============================================================================
--- jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/AbstractEvaluationTest.java
(original)
+++ jackrabbit/oak/trunk/oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/authorization/AbstractEvaluationTest.java
Thu Apr 11 12:53:12 2013
@@ -117,7 +117,7 @@ public abstract class AbstractEvaluation
         AccessControlUtils.addAccessControlEntry(superuser, "/", EveryonePrincipal.getInstance(),
privilegesFromName(Privilege.JCR_READ), true);
         superuser.save();
 
-        testSession = getTestSession();
+        testSession = createTestSession();
         testAcMgr = getAccessControlManager(testSession);
 
         /*
@@ -154,11 +154,8 @@ public abstract class AbstractEvaluation
         }
     }
 
-    private Session getTestSession() throws RepositoryException {
-        if (testSession == null) {
-            testSession = getHelper().getRepository().login(creds);
-        }
-        return testSession;
+    protected Session createTestSession() throws RepositoryException {
+        return getHelper().getRepository().login(creds);
     }
 
     protected static UserManager getUserManager(Session session) throws



Mime
View raw message