jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r791180 [2/3] - in /jackrabbit/trunk: jackrabbit-core/src/main/java/org/apache/jackrabbit/core/ jackrabbit-core/src/test/java/org/apache/jackrabbit/api/security/principal/ jackrabbit-core/src/test/java/org/apache/jackrabbit/api/security/use...
Date Sat, 04 Jul 2009 21:40:42 GMT
Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImplTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImplTest.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImplTest.java Sat Jul  4 21:40:37 2009
@@ -54,7 +54,7 @@
         creds = new SimpleCredentials(p.getName(), pw.toCharArray());
         User u = userMgr.createUser(p.getName(), pw);
         uID = u.getID();
-        uSession = helper.getRepository().login(creds);
+        uSession = getHelper().getRepository().login(creds);
         uMgr = getUserManager(uSession);
     }
 
@@ -95,7 +95,7 @@
     }
 
     public void testChangePassword() throws RepositoryException, NotExecutableException, NoSuchAlgorithmException, UnsupportedEncodingException {
-        String oldPw = helper.getProperty("javax.jcr.tck.superuser.pwd");
+        String oldPw = getHelper().getProperty("javax.jcr.tck.superuser.pwd");
         if (oldPw == null) {
             // missing property
             throw new NotExecutableException();

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserManagerImplTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserManagerImplTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserManagerImplTest.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserManagerImplTest.java Sat Jul  4 21:40:37 2009
@@ -390,7 +390,7 @@
     }
 
     public void testCleanup() throws RepositoryException, NotExecutableException {
-        Session s = helper.getSuperuserSession();
+        Session s = getHelper().getSuperuserSession();
         try {
             UserManager umgr = getUserManager(s);
             s.logout();
@@ -415,7 +415,7 @@
         String[] workspaceNames = superuser.getWorkspace().getAccessibleWorkspaceNames();
 
         for (int i = 0; i < workspaceNames.length; i++) {
-            Session s = helper.getSuperuserSession(workspaceNames[i]);
+            Session s = getHelper().getSuperuserSession(workspaceNames[i]);
             try {
                 UserManager umgr = getUserManager(s);
                 s.logout();

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/RemoveOrphanVersionHistoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/RemoveOrphanVersionHistoryTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/RemoveOrphanVersionHistoryTest.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/version/RemoveOrphanVersionHistoryTest.java Sat Jul  4 21:40:37 2009
@@ -164,7 +164,7 @@
         node.remove();
         session.save();
 
-        Session otherSession = helper.getReadWriteSession(workspaceName);
+        Session otherSession = getHelper().getReadWriteSession(workspaceName);
         try {
             // create a reference to the version history in another workspace
             Node otherRoot = otherSession.getRootNode();

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/DocumentViewTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/DocumentViewTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/DocumentViewTest.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/DocumentViewTest.java Sat Jul  4 21:40:37 2009
@@ -24,19 +24,11 @@
 import javax.jcr.Node;
 import javax.jcr.PathNotFoundException;
 import javax.jcr.Property;
-import javax.jcr.Session;
 import javax.jcr.ValueFormatException;
 import javax.jcr.nodetype.NoSuchNodeTypeException;
 
 import org.apache.jackrabbit.api.JackrabbitNodeTypeManager;
-import org.apache.jackrabbit.core.TestRepository;
-import org.apache.jackrabbit.test.JCRTestResult;
-import org.apache.jackrabbit.test.LogPrintWriter;
-import org.slf4j.LoggerFactory;
-import org.slf4j.Logger;
-
-import junit.framework.TestCase;
-import junit.framework.TestResult;
+import org.apache.jackrabbit.test.AbstractJCRTest;
 
 /**
  * Jackrabbit-specific test cases for the document view XML format.
@@ -44,23 +36,7 @@
  * @see org.apache.jackrabbit.test.api.ExportDocViewTest
  * @see org.apache.jackrabbit.test.api.DocumentViewImportTest
  */
-public class DocumentViewTest extends TestCase {
-
-    /** Logger instance for this class. */
-    private static final Logger log = LoggerFactory.getLogger(DocumentViewTest.class);
-
-    /** Test session. */
-    private Session session;
-
-    /**
-     * Use a {@link org.apache.jackrabbit.test.JCRTestResult} to suppress test
-     * case failures of known issues.
-     *
-     * @param testResult the test result.
-     */
-    public void run(TestResult testResult) {
-        super.run(new JCRTestResult(testResult, new LogPrintWriter(log)));
-    }
+public class DocumentViewTest extends AbstractJCRTest {
 
     /**
      * Sets up the test fixture.
@@ -69,9 +45,8 @@
      */
     protected void setUp() throws Exception {
         super.setUp();
-        session = TestRepository.getInstance().login();
         JackrabbitNodeTypeManager manager = (JackrabbitNodeTypeManager)
-            session.getWorkspace().getNodeTypeManager();
+            superuser.getWorkspace().getNodeTypeManager();
         try {
             manager.getNodeType("DocViewMultiValueTest");
         } catch (NoSuchNodeTypeException e) {
@@ -90,7 +65,6 @@
     protected void tearDown() throws Exception {
         // TODO: Unregister the MultiValueTestType node type once Jackrabbit
         // supports node type removal.
-        session.logout();
         super.tearDown();
     }
 
@@ -108,7 +82,7 @@
                 + " xmlns:jcr=\"http://www.jcp.org/jcr/1.0\""
                 + " xmlns:mix=\"http://www.jcp.org/jcr/mix/1.0\"/>";
             InputStream input = new ByteArrayInputStream(xml.getBytes("UTF-8"));
-            session.importXML(
+            superuser.importXML(
                     "/", input, ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW);
         } catch (ValueFormatException e) {
             fail("JCR-369: IllegalNameException when importing document view"
@@ -127,15 +101,15 @@
         String message = "JCR-325: docview roundtripping does not work with"
             + " multivalue non-string properties";
 
-        Node root = session.getRootNode();
+        Node root = superuser.getRootNode();
         ByteArrayOutputStream buffer = new ByteArrayOutputStream();
 
         Node node = root.addNode("multi-value-test", "DocViewMultiValueTest");
         node.setProperty("test", new String[] {"true", "false"});
-        session.exportDocumentView("/multi-value-test", buffer, true, true);
-        session.refresh(false); // Discard the transient multi-value-test node
+        superuser.exportDocumentView("/multi-value-test", buffer, true, true);
+        superuser.refresh(false); // Discard the transient multi-value-test node
 
-        session.importXML(
+        superuser.importXML(
                 "/", new ByteArrayInputStream(buffer.toByteArray()),
                 ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW);
         try {

Modified: jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/WorkspaceImporterTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/WorkspaceImporterTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/WorkspaceImporterTest.java (original)
+++ jackrabbit/trunk/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/xml/WorkspaceImporterTest.java Sat Jul  4 21:40:37 2009
@@ -22,32 +22,27 @@
 import javax.jcr.Node;
 import javax.jcr.PathNotFoundException;
 import javax.jcr.RepositoryException;
-import javax.jcr.Session;
 
-import org.apache.jackrabbit.core.TestRepository;
 import org.apache.jackrabbit.uuid.UUID;
-
-import junit.framework.TestCase;
+import org.apache.jackrabbit.test.AbstractJCRTest;
 
 /**
  * Test cases for the {@link WorkspaceImporter} class.
  */
-public class WorkspaceImporterTest extends TestCase {
-
-    private Session session;
+public class WorkspaceImporterTest extends AbstractJCRTest {
 
     private Node root;
 
     protected void setUp() throws Exception {
-        session = TestRepository.getInstance().login();
-        root = session.getRootNode().addNode("WorkspaceImporterTest");
-        session.save();
+        super.setUp();
+        root = superuser.getRootNode().addNode("WorkspaceImporterTest");
+        superuser.save();
     }
 
     protected void tearDown() throws Exception {
         root.remove();
-        session.save();
-        session.logout();
+        superuser.save();
+        super.tearDown();
     }
 
     /**
@@ -81,7 +76,7 @@
                 + "<sv:value>" + uuid + "</sv:value></sv:property>"
                 + "</sv:node>"
                 + "</sv:node>";
-            session.getWorkspace().importXML(
+            superuser.getWorkspace().importXML(
                     root.getPath(),
                     new ByteArrayInputStream(xml.getBytes("UTF-8")),
                     ImportUUIDBehavior.IMPORT_UUID_CREATE_NEW);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/AbstractJCRTest.java Sat Jul  4 21:40:37 2009
@@ -51,7 +51,7 @@
     /**
      * Helper object to access repository transparently
      */
-    public static RepositoryHelper helper = new RepositoryHelper();
+    private static RepositoryHelper helper = new RepositoryHelper();
 
     /**
      * Namespace URI for jcr prefix.
@@ -330,7 +330,7 @@
             fail("Property '" + RepositoryStub.PROP_WORKSPACE_NAME + "' is not defined.");
         }
 
-        superuser = helper.getSuperuserSession();
+        superuser = getHelper().getSuperuserSession();
 
         // setup some common names
         jcrPrimaryType = superuser.getNamespacePrefix(NS_JCR_URI) + ":primaryType";
@@ -396,7 +396,7 @@
         } else if (isSupported(Repository.LEVEL_2_SUPPORTED)) {
             testRootNode = cleanUpTestRoot(superuser);
             // also clean second workspace
-            Session s = helper.getSuperuserSession(workspaceName);
+            Session s = getHelper().getSuperuserSession(workspaceName);
             try {
                 cleanUpTestRoot(s);
             } finally {
@@ -443,6 +443,13 @@
     }
 
     /**
+     * @return the repository helper instance that is associated with this test.
+     */
+    protected RepositoryHelper getHelper() {
+        return helper;
+    }
+
+    /**
      * Returns the value of the configuration property with <code>propName</code>.
      * The sequence how configuration properties are read is the follwoing:
      * <ol>
@@ -475,28 +482,28 @@
         }
 
         // 1) test case specific property first
-        String value = helper.getProperty(RepositoryStub.PROP_PREFIX + "."
+        String value = getHelper().getProperty(RepositoryStub.PROP_PREFIX + "."
                 + testClassName + "." + testCaseName + "." + propName);
         if (value != null) {
             return value;
         }
 
         // 2) check test class property
-        value = helper.getProperty(RepositoryStub.PROP_PREFIX + "."
+        value = getHelper().getProperty(RepositoryStub.PROP_PREFIX + "."
                 + testClassName + "." + propName);
         if (value != null) {
             return value;
         }
 
         // 3) check package property
-        value = helper.getProperty(RepositoryStub.PROP_PREFIX + "."
+        value = getHelper().getProperty(RepositoryStub.PROP_PREFIX + "."
                 + testPackName + "." + propName);
         if (value != null) {
             return value;
         }
 
         // finally try global property
-        return helper.getProperty(RepositoryStub.PROP_PREFIX + "." + propName);
+        return getHelper().getProperty(RepositoryStub.PROP_PREFIX + "." + propName);
     }
 
     /**
@@ -621,7 +628,7 @@
      * @throws RepositoryException if an error occurs.
      */
     protected boolean isSupported(String descriptorKey) throws RepositoryException {
-        return "true".equals(helper.getRepository().getDescriptor(descriptorKey));
+        return "true".equals(getHelper().getRepository().getDescriptor(descriptorKey));
     }
 
     /**
@@ -633,7 +640,7 @@
      * @throws NotExecutableException If the feature is not supported.
      */
     protected void checkSupportedOption(String descriptorKey) throws RepositoryException, NotExecutableException {
-        String value = helper.getRepository().getDescriptor(descriptorKey);
+        String value = getHelper().getRepository().getDescriptor(descriptorKey);
         if (value == null || ! Boolean.valueOf(value).booleanValue()) {
             throw new NotExecutableException (
                     "Repository feature not supported: " + descriptorKey);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/RepositoryStub.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/RepositoryStub.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/RepositoryStub.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/RepositoryStub.java Sat Jul  4 21:40:37 2009
@@ -170,7 +170,7 @@
      * @return a <code>RepositoryStub</code> implementation.
      * @throws RepositoryStubException
      */
-    static synchronized RepositoryStub getInstance(Map configuration)
+    public static synchronized RepositoryStub getInstance(Map configuration)
         throws RepositoryStubException {
         Properties props = null;
         RepositoryStub stub = null;

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractPropertyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractPropertyTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractPropertyTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractPropertyTest.java Sat Jul  4 21:40:37 2009
@@ -59,7 +59,7 @@
     protected void setUp() throws Exception {
         isReadOnly = true;
         super.setUp();
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
 
         prop = PropertyUtil.searchProp(session, session.getRootNode().getNode(testPath), getPropertyType(), getPropertyIsMultivalued());
         if (prop == null) {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractWorkspaceCopyBetweenTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractWorkspaceCopyBetweenTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractWorkspaceCopyBetweenTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AbstractWorkspaceCopyBetweenTest.java Sat Jul  4 21:40:37 2009
@@ -66,8 +66,8 @@
 
         // init second workspace
         String otherWspName = getOtherWorkspaceName();
-        superuserW2 = helper.getSuperuserSession(otherWspName);
-        rwSessionW2 = helper.getReadWriteSession(otherWspName);
+        superuserW2 = getHelper().getSuperuserSession(otherWspName);
+        rwSessionW2 = getHelper().getReadWriteSession(otherWspName);
         workspaceW2 = superuserW2.getWorkspace();
 
         initNodesW2();

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AddNodeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AddNodeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AddNodeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/AddNodeTest.java Sat Jul  4 21:40:37 2009
@@ -211,7 +211,7 @@
         defaultRootNode.save();
 
         // use a different session to verify if the node is there
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             session.getItem(testNode.getPath());
         } finally {
@@ -235,7 +235,7 @@
         superuser.save();
 
         // use a different session to verify if the node is there
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             session.getItem(testNode.getPath());
         } finally {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/CheckPermissionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/CheckPermissionTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/CheckPermissionTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/CheckPermissionTest.java Sat Jul  4 21:40:37 2009
@@ -43,7 +43,7 @@
         testRootNode.addNode(nodeName2, testNodeType);
         superuser.save();
 
-        Session readOnly = helper.getReadOnlySession();
+        Session readOnly = getHelper().getReadOnlySession();
         try {
             permissionCheckReadOnly(readOnly);
             permissionCheckReadWrite(superuser);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportDocViewTest.java Sat Jul  4 21:40:37 2009
@@ -121,7 +121,7 @@
 
     protected void setUp() throws Exception {
         isReadOnly = true;
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         workspace = session.getWorkspace();
         nsr = workspace.getNamespaceRegistry();
         file = File.createTempFile("docViewExportTest", ".xml");

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportSysViewTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportSysViewTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportSysViewTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ExportSysViewTest.java Sat Jul  4 21:40:37 2009
@@ -58,7 +58,7 @@
 
     protected void setUp() throws Exception {
         isReadOnly = true;
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         file = File.createTempFile("SysViewExportTest", ".xml");
 
         super.setUp();

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/HasPermissionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/HasPermissionTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/HasPermissionTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/HasPermissionTest.java Sat Jul  4 21:40:37 2009
@@ -40,7 +40,7 @@
         Node n = testRootNode.addNode(nodeName2, testNodeType);
         superuser.save();
 
-        Session readOnly = helper.getReadOnlySession();
+        Session readOnly = getHelper().getReadOnlySession();
         try {
             String path = n.getPath();
 
@@ -66,7 +66,7 @@
         superuser.save();
 
         String path = n.getPath();
-        Session rwSession = helper.getReadWriteSession();
+        Session rwSession = getHelper().getReadWriteSession();
         try {
             assertTrue(rwSession.hasPermission(path, Session.ACTION_READ));
             assertTrue(rwSession.hasPermission(path + "newNode", Session.ACTION_ADD_NODE));

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ImpersonateTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ImpersonateTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ImpersonateTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ImpersonateTest.java Sat Jul  4 21:40:37 2009
@@ -45,7 +45,7 @@
         // impersonate to read-only user
         Session session;
         try {
-            session = superuser.impersonate(helper.getReadOnlyCredentials());
+            session = superuser.impersonate(getHelper().getReadOnlyCredentials());
         } catch (LoginException e) {
             throw new NotExecutableException("impersonate threw LoginException");
         }

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRegistryReadMethodsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRegistryReadMethodsTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRegistryReadMethodsTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRegistryReadMethodsTest.java Sat Jul  4 21:40:37 2009
@@ -55,7 +55,7 @@
     public void setUp() throws Exception {
         isReadOnly = true;
         super.setUp();
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         Workspace ws = session.getWorkspace();
         nsr = ws.getNamespaceRegistry();
     }

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRemappingTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRemappingTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRemappingTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NamespaceRemappingTest.java Sat Jul  4 21:40:37 2009
@@ -57,7 +57,7 @@
     protected void setUp() throws Exception {
         isReadOnly = true;
         super.setUp();
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         nsr = session.getWorkspace().getNamespaceRegistry();
     }
 
@@ -226,7 +226,7 @@
         assertEquals(after, session.getNamespacePrefix(NS_JCR_URI));
 
         // Check whether the mapping affects another session
-        Session another = helper.getReadOnlySession();
+        Session another = getHelper().getReadOnlySession();
         try {
             assertEquals(
                     "Local namespace changes must not affect other sessions",

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeAddMixinTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeAddMixinTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeAddMixinTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeAddMixinTest.java Sat Jul  4 21:40:37 2009
@@ -191,7 +191,7 @@
         String pathRelToRoot = node.getPath().substring(1);
 
         // access node through another session to lock it
-        Session session2 = helper.getSuperuserSession();
+        Session session2 = getHelper().getSuperuserSession();
         try {
             Node node2 = session2.getRootNode().getNode(pathRelToRoot);
             node2.lock(true, true);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeCanAddMixinTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeCanAddMixinTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeCanAddMixinTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeCanAddMixinTest.java Sat Jul  4 21:40:37 2009
@@ -66,7 +66,7 @@
         String pathRelToRoot = node.getPath().substring(1);
 
         // access node through another session to lock it
-        Session session2 = helper.getSuperuserSession();
+        Session session2 = getHelper().getSuperuserSession();
         try {
             Node node2 = session2.getRootNode().getNode(pathRelToRoot);
             node2.lock(true, true);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeDiscoveringNodeTypesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeDiscoveringNodeTypesTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeDiscoveringNodeTypesTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeDiscoveringNodeTypesTest.java Sat Jul  4 21:40:37 2009
@@ -56,7 +56,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         testRootNode = session.getRootNode().getNode(testPath);
         NodeIterator nodes = testRootNode.getNodes();
         try {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeReadMethodsTest.java Sat Jul  4 21:40:37 2009
@@ -66,7 +66,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
 
         testRootNode = session.getRootNode().getNode(testPath);
         NodeIterator nodes = testRootNode.getNodes();
@@ -230,7 +230,7 @@
      */
     public void testIsSame() throws RepositoryException {
         // access same node through different session
-        Session s = helper.getReadOnlySession();
+        Session s = getHelper().getReadOnlySession();
         try {
             Item otherTestNode = s.getRootNode().getNode(testPath);
             assertTrue("isSame(Item item) must return true for the same " +

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeRemoveMixinTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeRemoveMixinTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeRemoveMixinTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeRemoveMixinTest.java Sat Jul  4 21:40:37 2009
@@ -164,7 +164,7 @@
         String pathRelToRoot = node.getPath().substring(1);
 
         // access node through another session to lock it
-        Session session2 = helper.getSuperuserSession();
+        Session session2 = getHelper().getSuperuserSession();
         try {
             Node node2 = session2.getRootNode().getNode(pathRelToRoot);
             node2.lock(true, true);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeSetPrimaryTypeTest.java Sat Jul  4 21:40:37 2009
@@ -70,7 +70,7 @@
                     assertEquals("Node.getPrimaryNodeType must reflect the changes made.", ntName, node.getPrimaryNodeType().getName());
                     assertEquals("The value of the jcr:primaryType property must change upon setPrimaryType.", ntName, node.getProperty(jcrPrimaryType).getString());
 
-                    otherSession = helper.getReadOnlySession();
+                    otherSession = getHelper().getReadOnlySession();
                     assertEquals("Node.getPrimaryNodeType must reflect the changes made.", ntName, otherSession.getNode(node.getPath()).getPrimaryNodeType().getName());
                     assertEquals("The value of the jcr:primaryType property must change upon setPrimaryType.", ntName, otherSession.getNode(node.getPath()).getProperty(jcrPrimaryType).getString());
 
@@ -223,7 +223,7 @@
         String pathRelToRoot = node.getPath().substring(1);
 
         // access node through another session to lock it
-        Session session2 = helper.getSuperuserSession();
+        Session session2 = getHelper().getSuperuserSession();
         try {
             Node node2 = session2.getRootNode().getNode(pathRelToRoot);
             node2.lock(true, true);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeTest.java Sat Jul  4 21:40:37 2009
@@ -55,7 +55,7 @@
         super.setUp();
 
         // login to second workspace
-        superuserW2 = helper.getSuperuserSession(workspaceName);
+        superuserW2 = getHelper().getSuperuserSession(workspaceName);
     }
 
     /**
@@ -470,7 +470,7 @@
         defaultRootNode.save();
 
         // use a different session to verify if the node is there
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             testNode = (Node) session.getItem(testNode.getPath());
         } finally {
@@ -494,7 +494,7 @@
         superuser.save();
 
         // use a different session to verify if the node is there
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             testNode = (Node) session.getItem(testNode.getPath());
         } finally {
@@ -558,7 +558,7 @@
         superuser.save();
 
         // get the node with session 2
-        Session testSession = helper.getReadWriteSession();
+        Session testSession = getHelper().getReadWriteSession();
         try {
             Node defaultTestNodeSession2 = (Node) testSession.getItem(defaultTestNode.getPath());
 
@@ -664,7 +664,7 @@
         String pathRelToRoot = node.getPath().substring(1);
 
         // access node through another session to lock it
-        Session session2 = helper.getSuperuserSession();
+        Session session2 = getHelper().getSuperuserSession();
         try {
             Node node2 = session2.getRootNode().getNode(pathRelToRoot);
             node2.lock(true, true);
@@ -707,7 +707,7 @@
         // remove first slash of path to get rel path to root
         String pathRelToRoot = node.getPath().substring(1);
         // access node through another session to lock it
-        Session session2 = helper.getSuperuserSession();
+        Session session2 = getHelper().getSuperuserSession();
         try {
             Node node2 = session2.getRootNode().getNode(pathRelToRoot);
             node2.lock(true, true);
@@ -783,7 +783,7 @@
         testRootNode.save();
 
         // accuire the same node with a different session
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             Node testNode2 = (Node) session.getItem(testNode1.getPath());
 
@@ -902,7 +902,7 @@
         testNode1Session1.addNode(nodeName2, testNodeType);
 
         // get session 2
-        Session session2 = helper.getReadWriteSession();
+        Session session2 = getHelper().getReadWriteSession();
 
         try {
             // get the second node
@@ -961,7 +961,7 @@
         testNode1Session1.addNode(nodeName2, testNodeType);
 
         // get session 2
-        Session session2 = helper.getReadWriteSession();
+        Session session2 = getHelper().getReadWriteSession();
 
         try {
             // get the second node
@@ -1016,7 +1016,7 @@
         nodeSession1.addNode(nodeName2, testNodeType);
 
         // get the new node with a different session
-        Session testSession = helper.getReadWriteSession();
+        Session testSession = getHelper().getReadWriteSession();
         try {
             Node nodeSession2 = (Node) testSession.getItem(nodeSession1.getPath());
 
@@ -1077,7 +1077,7 @@
         defaultRootNode.save();
 
         // get the new node with a different session
-        Session testSession = helper.getReadOnlySession();
+        Session testSession = getHelper().getReadOnlySession();
         try {
             testSession.getItem(testNode.getPath());
         } finally {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeUUIDTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeUUIDTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeUUIDTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/NodeUUIDTest.java Sat Jul  4 21:40:37 2009
@@ -122,7 +122,7 @@
         superuser.save();
 
         // get the moving node with session 2
-        Session testSession = helper.getReadWriteSession();
+        Session testSession = getHelper().getReadWriteSession();
         try {
             Node refTargetNodeSession2 = (Node) testSession.getItem(refTargetNode.getPath());
 

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyReadMethodsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyReadMethodsTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyReadMethodsTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyReadMethodsTest.java Sat Jul  4 21:40:37 2009
@@ -57,7 +57,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         testRootNode = session.getRootNode().getNode(testPath);
 
         PropertyIterator properties = testRootNode.getProperties();
@@ -197,7 +197,7 @@
      */
     public void testIsSame() throws RepositoryException {
         // access same property through different session
-        Session otherSession = helper.getReadOnlySession();
+        Session otherSession = getHelper().getReadOnlySession();
         try {
             Property otherProperty = otherSession.getRootNode().getNode(testPath).getProperty(property.getName());
             assertTrue("isSame must return true for the same " +

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTest.java Sat Jul  4 21:40:37 2009
@@ -58,7 +58,7 @@
         testRootNode.save();
 
         // accuire the same property through a different session
-        Session session = helper.getSuperuserSession();
+        Session session = getHelper().getSuperuserSession();
         try {
             Property prop2 = session.getProperty(prop1.getPath());
 

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTypeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTypeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTypeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/PropertyTypeTest.java Sat Jul  4 21:40:37 2009
@@ -52,7 +52,7 @@
      * the workspace starting at {@link #testRoot}.
      */
     public void testType() throws RepositoryException {
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             Node root = session.getRootNode().getNode(testPath);
             typeCheckChildren(root);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ReferenceableRootNodesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ReferenceableRootNodesTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ReferenceableRootNodesTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ReferenceableRootNodesTest.java Sat Jul  4 21:40:37 2009
@@ -48,8 +48,8 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
-        sessionW2 = helper.getReadOnlySession(workspaceName);
+        session = getHelper().getReadOnlySession();
+        sessionW2 = getHelper().getReadOnlySession(workspaceName);
 
         String wspName = session.getWorkspace().getName();
         boolean sameWsp = (wspName == null) ? workspaceName == null : wspName.equals(workspaceName);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryDescriptorTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryDescriptorTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryDescriptorTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryDescriptorTest.java Sat Jul  4 21:40:37 2009
@@ -65,7 +65,7 @@
     protected void setUp() throws Exception {
         isReadOnly = true;
         super.setUp();
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryLoginTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryLoginTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryLoginTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RepositoryLoginTest.java Sat Jul  4 21:40:37 2009
@@ -45,9 +45,9 @@
         isReadOnly = true;
         super.setUp();
 
-        credentials = helper.getReadOnlyCredentials();
+        credentials = getHelper().getReadOnlyCredentials();
         workspaceName = superuser.getWorkspace().getName();
-        repository = helper.getRepository();
+        repository = getHelper().getRepository();
     }
 
     /**
@@ -58,7 +58,7 @@
     public void testNoSuchWorkspaceException()
             throws RepositoryException {
 
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         String name;
         try {
             name = getNonExistingWorkspaceName(session);
@@ -68,7 +68,7 @@
         }
 
         try {
-            session = helper.getRepository().login(credentials, name);
+            session = getHelper().getRepository().login(credentials, name);
             fail("login with a not available workspace name must throw a " +
                     "NoSuchWorkspaceException");
         } catch (NoSuchWorkspaceException e) {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RootNodeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RootNodeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RootNodeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/RootNodeTest.java Sat Jul  4 21:40:37 2009
@@ -45,7 +45,7 @@
     protected void setUp() throws Exception {
         isReadOnly = true;
         super.setUp();
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         rootNode = session.getRootNode();
     }
 

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SerializationTest.java Sat Jul  4 21:40:37 2009
@@ -519,7 +519,7 @@
         session.logout();
         superuser = null; //so tearDown won't fail
 
-        session = helper.getReadWriteSession();
+        session = getHelper().getReadWriteSession();
         treeComparator.setSession(session);
         treeComparator.compare(treeComparator.CHECK_EMPTY);
     }
@@ -542,7 +542,7 @@
         session.logout();
         superuser = null; //so tearDown won't fail
 
-        session = helper.getReadWriteSession();
+        session = getHelper().getReadWriteSession();
         treeComparator.setSession(session);
         treeComparator.compare(treeComparator.CHECK_EMPTY);
     }

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionReadMethodsTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
     protected void setUp() throws Exception {
         isReadOnly = true;
         super.setUp();
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionRemoveItemTest.java Sat Jul  4 21:40:37 2009
@@ -44,7 +44,7 @@
 
         adminSession = superuser;
 
-        readOnlySession = helper.getReadOnlySession();
+        readOnlySession = getHelper().getReadOnlySession();
 
         removeNode = testRootNode.addNode(nodeName1, testNodeType);
         testRootNode.save();
@@ -98,7 +98,7 @@
         removeNode.lock(true, true);
         Session testSession = null;
         try {
-            testSession = helper.getReadWriteSession();
+            testSession = getHelper().getReadWriteSession();
             // removal of the locked node is a alteration of the parent, which
             // isn't locked -> must succeed.
             testSession.removeItem(nPath);
@@ -125,7 +125,7 @@
         Session testSession = null;
 
         try {
-            testSession = helper.getReadWriteSession();
+            testSession = getHelper().getReadWriteSession();
             try {
                 testSession.removeItem(childN.getPath());
                 testSession.save();

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionTest.java Sat Jul  4 21:40:37 2009
@@ -270,7 +270,7 @@
         String pathRelToRoot = lockableNode.getPath().substring(1);
 
         // access node through another session to lock it
-        Session session2 = helper.getSuperuserSession();
+        Session session2 = getHelper().getSuperuserSession();
         try {
             Node node2 = session2.getRootNode().getNode(pathRelToRoot);
             node2.lock(true, true);
@@ -318,7 +318,7 @@
         superuser.save();
 
         // get moved tree root node with session 2
-        Session testSession = helper.getReadWriteSession();
+        Session testSession = getHelper().getReadWriteSession();
         try {
             testSession.getItem(destParentNode.getPath() + "/" + nodeName2);
             // node found
@@ -346,7 +346,7 @@
         superuser.save();
 
         // use a different session to verify if the node is there
-        Session s = helper.getReadOnlySession();
+        Session s = getHelper().getReadOnlySession();
         try {
             s.getItem(newNode.getPath());
             // throws PathNotFoundException if item was not saved
@@ -387,7 +387,7 @@
         // check if the child node was created properly
 
         // get a reference with a second session to the modified node
-        Session s = helper.getReadOnlySession();
+        Session s = getHelper().getReadOnlySession();
         try {
             Node newNodeSession2 = (Node) s.getItem(newNode.getPath());
             // check if child is there
@@ -449,7 +449,7 @@
         nodeSession1.addNode(nodeName2, testNodeType);
 
         // get the new node with a different session
-        Session testSession = helper.getReadWriteSession();
+        Session testSession = getHelper().getReadWriteSession();
         try {
             Node nodeSession2 = (Node) testSession.getItem(nodeSession1.getPath());
 
@@ -503,7 +503,7 @@
         testNode1Session1.addNode(nodeName2, testNodeType);
 
         // get session 2
-        Session session2 = helper.getReadWriteSession();
+        Session session2 = getHelper().getReadWriteSession();
 
         try {
             // get the second node
@@ -563,7 +563,7 @@
         testNode1Session1.addNode(nodeName2, testNodeType);
 
         // get session 2
-        Session session2 = helper.getReadWriteSession();
+        Session session2 = getHelper().getReadWriteSession();
 
         try {
             // get the second node

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SessionUUIDTest.java Sat Jul  4 21:40:37 2009
@@ -129,7 +129,7 @@
         }
 
         // get the moving node with session 2
-        Session testSession = helper.getReadWriteSession();
+        Session testSession = getHelper().getReadWriteSession();
 
         try {
             Node refTargetNodeSession2 = (Node) testSession.getItem(refTargetNode.getPath());

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueVersionExceptionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueVersionExceptionTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueVersionExceptionTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/SetValueVersionExceptionTest.java Sat Jul  4 21:40:37 2009
@@ -58,7 +58,7 @@
      */
     protected void setUp() throws Exception {
         super.setUp();
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
 
         value = session.getValueFactory().createValue("abc");
         values = new Value[] {value};

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/UndefinedPropertyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/UndefinedPropertyTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/UndefinedPropertyTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/UndefinedPropertyTest.java Sat Jul  4 21:40:37 2009
@@ -55,7 +55,7 @@
      * Tests that no actual property with type Undefined exists.
      */
     public void testUndefinedProperty() throws RepositoryException {
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             Property prop = PropertyUtil.searchProp(session, session.getRootNode().getNode(testPath), PropertyType.UNDEFINED, null);
             assertNull("Property with type Undefined found.", prop);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ValueFactoryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ValueFactoryTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ValueFactoryTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/ValueFactoryTest.java Sat Jul  4 21:40:37 2009
@@ -72,7 +72,7 @@
 
     public void setUp() throws Exception {
         super.setUp();
-        session = helper.getReadWriteSession();
+        session = getHelper().getReadWriteSession();
         try {
             valueFactory = session.getValueFactory();
         } catch (UnsupportedRepositoryOperationException e) {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCloneTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCloneTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCloneTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCloneTest.java Sat Jul  4 21:40:37 2009
@@ -127,7 +127,7 @@
      */
     public void testCloneNodesAccessDenied() throws RepositoryException {
         // get read only session
-        Session readOnlySuperuser = helper.getReadOnlySession();
+        Session readOnlySuperuser = getHelper().getReadOnlySession();
         try {
             String dstAbsPath = node2.getPath() + "/" + node1.getName();
             try {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyBetweenWorkspacesTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyBetweenWorkspacesTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyBetweenWorkspacesTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyBetweenWorkspacesTest.java Sat Jul  4 21:40:37 2009
@@ -109,7 +109,7 @@
      * sufficient access permissions to complete the operation.
      */
     public void testCopyNodesAccessDenied() throws RepositoryException {
-        Session readOnlySuperuser = helper.getReadOnlySession();
+        Session readOnlySuperuser = getHelper().getReadOnlySession();
         try {
             String dstAbsPath = node2.getPath() + "/" + node1.getName();
             try {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceCopyTest.java Sat Jul  4 21:40:37 2009
@@ -93,7 +93,7 @@
      * sufficient access permissions to complete the operation.
      */
     public void testCopyNodesAccessDenied() throws RepositoryException {
-        Session readOnlySuperuser = helper.getReadOnlySession();
+        Session readOnlySuperuser = getHelper().getReadOnlySession();
         try {
             String dstAbsPath = node2.getPath() + "/" + node1.getName();
             try {
@@ -144,7 +144,7 @@
         String dstAbsPath = node2.getPath() + "/" + node1.getName();
 
         // get other session
-        Session otherSession = helper.getReadWriteSession();
+        Session otherSession = getHelper().getReadWriteSession();
 
         try {
             // get lock target node in destination wsp through other session

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceMoveTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceMoveTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceMoveTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceMoveTest.java Sat Jul  4 21:40:37 2009
@@ -93,7 +93,7 @@
      * sufficient access permissions to complete the operation.
      */
     public void testMoveNodesAccessDenied() throws RepositoryException {
-        Session readOnlySuperuser = helper.getReadOnlySession();
+        Session readOnlySuperuser = getHelper().getReadOnlySession();
         try {
             String dstAbsPath = node2.getPath() + "/" + node1.getName();
             try {
@@ -145,7 +145,7 @@
         String dstAbsPath = node2.getPath() + "/" + node1.getName();
 
         // get other session
-        Session otherSession = helper.getReadWriteSession();
+        Session otherSession = getHelper().getReadWriteSession();
 
         try {
             // get lock target node in destination wsp through other session

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceReadMethodsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceReadMethodsTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceReadMethodsTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/WorkspaceReadMethodsTest.java Sat Jul  4 21:40:37 2009
@@ -45,7 +45,7 @@
      * this workspace was requested from.
      */
     public void testGetSession() throws RepositoryException {
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             Session otherSession = session.getWorkspace().getSession();
             assertSame("Workspace.getSession() returns not the same session object.",
@@ -60,7 +60,7 @@
      * used for login.
      */
     public void testGetName() throws RepositoryException {
-        Session session = helper.getReadOnlySession(workspaceName);
+        Session session = getHelper().getReadOnlySession(workspaceName);
         try {
             String name = session.getWorkspace().getName();
             if (workspaceName != null) {
@@ -77,7 +77,7 @@
      * QueryManager object.
      */
     public void testGetQueryManager() throws RepositoryException {
-        Workspace ws = helper.getReadOnlySession().getWorkspace();
+        Workspace ws = getHelper().getReadOnlySession().getWorkspace();
         try {
             assertNotNull("Workspace does not return a QueryManager object.", ws.getQueryManager());
         } finally {
@@ -91,12 +91,12 @@
      * used for accessing the current workspace.
      */
     public void testGetAccessibleWorkspaceNames() throws RepositoryException {
-        Session session = helper.getReadOnlySession();
+        Session session = getHelper().getReadOnlySession();
         try {
             String[] wsNames = session.getWorkspace().getAccessibleWorkspaceNames();
             for (int i = 0; i < wsNames.length; i++) {
                 // login
-                Session s = helper.getReadOnlySession(wsNames[i]);
+                Session s = getHelper().getReadOnlySession(wsNames[i]);
                 s.logout();
             }
         } finally {

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/AbstractLockTest.java Sat Jul  4 21:40:37 2009
@@ -183,7 +183,7 @@
      * A locked node must also be locked if accessed by some other session.
      */
     public void testLockVisibility() throws RepositoryException {
-        Session otherSession = helper.getReadWriteSession();
+        Session otherSession = getHelper().getReadWriteSession();
         try {
             Node ln = (Node) otherSession.getItem(lockedNode.getPath());
             assertTrue("Locked node must also be locked for another session", ln.isLocked());
@@ -211,7 +211,7 @@
         assertTrue("Session must be lock owner", lockedNode.getLock().isLockOwningSession());
         assertTrue("Session must be lock owner", lockMgr.getLock(lockedNode.getPath()).isLockOwningSession());
 
-        Session otherSession = helper.getReadOnlySession();
+        Session otherSession = getHelper().getReadOnlySession();
         try {
             Lock lck = otherSession.getNode(lockedNode.getPath()).getLock();
             assertFalse("Session must not be lock owner", lck.isLockOwningSession());
@@ -222,7 +222,7 @@
             otherSession.logout();
         }
 
-        Session otherAdmin = helper.getSuperuserSession();
+        Session otherAdmin = getHelper().getSuperuserSession();
         try {
             Lock lck = otherAdmin.getNode(lockedNode.getPath()).getLock();
             assertFalse("Other Session for the same userID must not be lock owner", lck.isLockOwningSession());
@@ -314,7 +314,7 @@
      * @throws NotExecutableException
      */
     public void testUnlockByOtherSession() throws RepositoryException, NotExecutableException {
-        Session otherSession = helper.getReadWriteSession();
+        Session otherSession = getHelper().getReadWriteSession();
         try {
             getLockManager(otherSession).unlock(lockedNode.getPath());
             fail("Another session must not be allowed to unlock.");

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/DeepLockTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/DeepLockTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/DeepLockTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/DeepLockTest.java Sat Jul  4 21:40:37 2009
@@ -115,7 +115,7 @@
     }
 
     public void testRemoveLockedChild() throws RepositoryException {
-        Session otherSession = helper.getReadWriteSession();
+        Session otherSession = getHelper().getReadWriteSession();
         try {
             Node child = (Node) otherSession.getItem(childNode.getPath());
             child.remove();

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockManagerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockManagerTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockManagerTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockManagerTest.java Sat Jul  4 21:40:37 2009
@@ -195,7 +195,7 @@
         Lock l = lockMgr.lock(testPath, true, sessionScoped, Long.MAX_VALUE, null);
         String ltoken = l.getLockToken();
 
-        Session other = helper.getReadWriteSession();
+        Session other = getHelper().getReadWriteSession();
         try {
             LockManager otherLockMgr = getLockManager(other);
             assertFalse(containsLockToken(otherLockMgr, ltoken));
@@ -320,7 +320,7 @@
         Lock l = lockMgr.lock(testPath, true, sessionScoped, Long.MAX_VALUE, null);
         String ltoken = l.getLockToken();
 
-        Session other = helper.getReadWriteSession();
+        Session other = getHelper().getReadWriteSession();
         LockManager otherLockMgr = getLockManager(other);
         try {
             lockMgr.removeLockToken(ltoken);
@@ -348,7 +348,7 @@
         Lock l = lockMgr.lock(testPath, true, sessionScoped, Long.MAX_VALUE, null);
         String ltoken = l.getLockToken();
 
-        Session other = helper.getReadWriteSession();
+        Session other = getHelper().getReadWriteSession();
         LockManager otherLockMgr = getLockManager(other);
         try {
             lockMgr.removeLockToken(ltoken);
@@ -372,7 +372,7 @@
         Lock l = lockMgr.lock(testPath, true, sessionScoped, Long.MAX_VALUE, null);
         String ltoken = l.getLockToken();
 
-        Session other = helper.getReadWriteSession();
+        Session other = getHelper().getReadWriteSession();
         LockManager otherLockMgr = getLockManager(other);
         try {
             lockMgr.removeLockToken(ltoken);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/LockTest.java Sat Jul  4 21:40:37 2009
@@ -115,7 +115,7 @@
         assertTrue("Lock must be live", lock.isLive());
 
         // create new session
-        Session otherSuperuser = helper.getSuperuserSession();
+        Session otherSuperuser = getHelper().getSuperuserSession();
 
         try {
             // get same node
@@ -370,7 +370,7 @@
         testRootNode.save();
 
         // create new session
-        Session otherSuperuser = helper.getSuperuserSession();
+        Session otherSuperuser = getHelper().getSuperuserSession();
 
         Lock lock;
         try {
@@ -410,7 +410,7 @@
         testRootNode.save();
 
         // create new session
-        Session otherSuperuser = helper.getSuperuserSession();
+        Session otherSuperuser = getHelper().getSuperuserSession();
 
         try {
             // get node created above
@@ -451,7 +451,7 @@
         testRootNode.save();
 
         // create new session
-        Session otherSuperuser = helper.getSuperuserSession();
+        Session otherSuperuser = getHelper().getSuperuserSession();
 
         try {
             // get node created above

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SessionScopedLockTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SessionScopedLockTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SessionScopedLockTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SessionScopedLockTest.java Sat Jul  4 21:40:37 2009
@@ -53,7 +53,7 @@
      */
     public void testImplicitUnlock() throws RepositoryException,
             NotExecutableException {
-        Session other = helper.getReadWriteSession();
+        Session other = getHelper().getReadWriteSession();
         try {
             Node testNode = (Node) other.getItem(testRootNode.getPath());
             Node lockedNode = testNode.addNode(nodeName1, testNodeType);
@@ -77,7 +77,7 @@
      */
     public void testImplicitUnlock2() throws RepositoryException,
             NotExecutableException {
-        Session other = helper.getReadWriteSession();
+        Session other = getHelper().getReadWriteSession();
         try {
             Node testNode = (Node) other.getItem(testRootNode.getPath());
             Node lockedNode = testNode.addNode(nodeName1, testNodeType);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SetValueLockExceptionTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SetValueLockExceptionTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SetValueLockExceptionTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/lock/SetValueLockExceptionTest.java Sat Jul  4 21:40:37 2009
@@ -144,7 +144,7 @@
         }
 
         // another session
-        Session session = helper.getReadWriteSession();
+        Session session = getHelper().getReadWriteSession();
         try {
             Node node = (Node) session.getItem(testNode.getPath());
             Property prop = null;

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithNodeTypeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithNodeTypeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithNodeTypeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithNodeTypeTest.java Sat Jul  4 21:40:37 2009
@@ -54,7 +54,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         manager = session.getWorkspace().getNodeTypeManager();
     }
 

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithoutNodeTypeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithoutNodeTypeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithoutNodeTypeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanAddChildNodeCallWithoutNodeTypeTest.java Sat Jul  4 21:40:37 2009
@@ -48,7 +48,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanRemoveItemTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanRemoveItemTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanRemoveItemTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanRemoveItemTest.java Sat Jul  4 21:40:37 2009
@@ -49,7 +49,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBinaryTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBinaryTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBinaryTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBinaryTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBooleanTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBooleanTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBooleanTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyBooleanTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDateTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDateTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDateTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDateTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDoubleTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDoubleTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDoubleTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyDoubleTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyLongTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyLongTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyLongTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyLongTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyMultipleTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyMultipleTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyMultipleTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyMultipleTest.java Sat Jul  4 21:40:37 2009
@@ -48,7 +48,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyNameTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyNameTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyNameTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyNameTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyPathTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyPathTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyPathTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyPathTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyStringTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyStringTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyStringTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyStringTest.java Sat Jul  4 21:40:37 2009
@@ -50,7 +50,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/CanSetPropertyTest.java Sat Jul  4 21:40:37 2009
@@ -48,7 +48,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeDefTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeDefTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeDefTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeDefTest.java Sat Jul  4 21:40:37 2009
@@ -65,7 +65,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         manager = session.getWorkspace().getNodeTypeManager();
         // re-fetch testRootNode with read-only session
         testRootNode = (Node) session.getItem(testRoot);

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeManagerTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeManagerTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeManagerTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeManagerTest.java Sat Jul  4 21:40:37 2009
@@ -53,7 +53,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         manager = session.getWorkspace().getNodeTypeManager();
     }
 

Modified: jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeTest.java?rev=791180&r1=791179&r2=791180&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeTest.java (original)
+++ jackrabbit/trunk/jackrabbit-jcr-tests/src/main/java/org/apache/jackrabbit/test/api/nodetype/NodeTypeTest.java Sat Jul  4 21:40:37 2009
@@ -68,7 +68,7 @@
         isReadOnly = true;
         super.setUp();
 
-        session = helper.getReadOnlySession();
+        session = getHelper().getReadOnlySession();
         manager = session.getWorkspace().getNodeTypeManager();
         rootNode = session.getRootNode();
     }



Mime
View raw message