jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r795082 - in /jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi: AbstractJCR2SPITest.java GetItemsTest.java
Date Fri, 17 Jul 2009 13:40:09 GMT
Author: mduerig
Date: Fri Jul 17 13:40:09 2009
New Revision: 795082

URL: http://svn.apache.org/viewvc?rev=795082&view=rev
Log:
Added missing methods and default implementations

Modified:
    jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
    jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/GetItemsTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java?rev=795082&r1=795081&r2=795082&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/AbstractJCR2SPITest.java
Fri Jul 17 13:40:09 2009
@@ -91,13 +91,12 @@
             protected void checkCredentials(Credentials credentials, String workspaceName)
                     throws LoginException {
 
-                // empty
+                AbstractJCR2SPITest.this.checkCredentials(credentials, workspaceName);
             }
 
             @Override
             protected QNodeDefinition createRootNodeDefinition() throws RepositoryException
{
-                // todo implement createRootNodeDefinition
-                return null;
+                return AbstractJCR2SPITest.this.createRootNodeDefinition();
             }
 
             @Override
@@ -182,6 +181,10 @@
         return RepositoryImpl.create(config);
     }
 
+    protected void checkCredentials(Credentials credentials, String workspaceName) {
+        // empty -> all credentials are valid by default
+    }
+
     // -----------------------------------------------------< RepositoryService >---
 
     public IdFactory getIdFactory() throws RepositoryException {
@@ -253,6 +256,8 @@
         return repositoryService.getPropertyDefinition(sessionInfo, propertyId);
     }
 
+    protected abstract QNodeDefinition createRootNodeDefinition();
+
     public abstract NodeInfo getNodeInfo(SessionInfo sessionInfo, NodeId nodeId) throws RepositoryException;
 
     public abstract Iterator<? extends ItemInfo> getItemInfos(SessionInfo sessionInfo,
NodeId nodeId) throws ItemNotFoundException, RepositoryException;

Modified: jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/GetItemsTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/GetItemsTest.java?rev=795082&r1=795081&r2=795082&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/GetItemsTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr2spi/src/test/java/org/apache/jackrabbit/jcr2spi/GetItemsTest.java
Fri Jul 17 13:40:09 2009
@@ -44,6 +44,7 @@
 import org.apache.jackrabbit.spi.Path;
 import org.apache.jackrabbit.spi.PropertyId;
 import org.apache.jackrabbit.spi.PropertyInfo;
+import org.apache.jackrabbit.spi.QNodeDefinition;
 import org.apache.jackrabbit.spi.QValue;
 import org.apache.jackrabbit.spi.RepositoryService;
 import org.apache.jackrabbit.spi.SessionInfo;
@@ -190,6 +191,12 @@
     }
 
     @Override
+    protected QNodeDefinition createRootNodeDefinition() {
+        fail("Not implemented");
+        return null;
+    }
+
+    @Override
     public Iterator<ChildInfo> getChildInfos(SessionInfo sessionInfo, NodeId parentId)
             throws RepositoryException {
 



Mime
View raw message