jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r921938 - /jackrabbit/sandbox/jackrabbit-spi2cmis/src/test/java/org/apache/jackrabbit/spi2cmis/AbstractTestCase.java
Date Thu, 11 Mar 2010 17:04:51 GMT
Author: dpfister
Date: Thu Mar 11 17:04:50 2010
New Revision: 921938

URL: http://svn.apache.org/viewvc?rev=921938&view=rev
Log:
#0000 Add settings for chemistry

Modified:
    jackrabbit/sandbox/jackrabbit-spi2cmis/src/test/java/org/apache/jackrabbit/spi2cmis/AbstractTestCase.java

Modified: jackrabbit/sandbox/jackrabbit-spi2cmis/src/test/java/org/apache/jackrabbit/spi2cmis/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit-spi2cmis/src/test/java/org/apache/jackrabbit/spi2cmis/AbstractTestCase.java?rev=921938&r1=921937&r2=921938&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit-spi2cmis/src/test/java/org/apache/jackrabbit/spi2cmis/AbstractTestCase.java
(original)
+++ jackrabbit/sandbox/jackrabbit-spi2cmis/src/test/java/org/apache/jackrabbit/spi2cmis/AbstractTestCase.java
Thu Mar 11 17:04:50 2010
@@ -43,9 +43,10 @@ public abstract class AbstractTestCase e
     protected Repository createJcrRepository() throws RepositoryException {
         try {
             // TODO fix: get the parameter set from system property
-            parameters = simpleParameters();
+//            parameters = simpleParameters();
 //            parameters = nuxeoParameters();
 //            parameters = alfrescoParameters();
+            parameters = chemistryParameters();
             parameters.put(
                     Jcr2spiRepositoryFactory.PARAM_REPOSITORY_SERVICE_FACTORY,
                     Spi2cmisRepositoryServiceFactory.class.getName());
@@ -98,6 +99,19 @@ public abstract class AbstractTestCase e
         return parameters;
     }
 
+    @SuppressWarnings("unused")
+    private static Map<String, Object> chemistryParameters() {
+        Map<String, Object> parameters = new HashMap<String, Object>();
+        parameters.put(Spi2cmisRepositoryServiceFactory.PARAM_CMIS_REPOSITORY_URL,
+                "http://localhost:8082/cmis/repository");
+        parameters.put(Spi2cmisRepositoryServiceFactory.PARAM_CMIS_USERNAME, "admin");
+        parameters.put(Spi2cmisRepositoryServiceFactory.PARAM_CMIS_PASSWORD, "admin");
+        parameters.put("paths.node", new String[] { "/folder 1/folder 2" });
+        parameters.put("paths.property", new String[] { "/folder 1/folder 2/title" });
+        parameters.put("paths.binary", new String[] { "/folder 1/folder 2/doc 3/jcr:content/jcr:data"
});
+        return parameters;
+    }
+
     protected Session login() throws RepositoryException {
         Object userName = parameters.get(Spi2cmisRepositoryServiceFactory.PARAM_CMIS_USERNAME);
         Object password = parameters.get(Spi2cmisRepositoryServiceFactory.PARAM_CMIS_PASSWORD);



Mime
View raw message