jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r1159197 - /jackrabbit/trunk/jackrabbit-jcr-server/src/test/java/org/apache/jackrabbit/webdav/simple/LitmusTest.java
Date Thu, 18 Aug 2011 12:48:29 GMT
Author: jukka
Date: Thu Aug 18 12:48:28 2011
New Revision: 1159197

URL: http://svn.apache.org/viewvc?rev=1159197&view=rev
Log:
JCR-2614: Include the WebDAV litmus tests in the Jackrabbit integration
tests

Escape the repository path to support spaces and other odd characters

Modified:
    jackrabbit/trunk/jackrabbit-jcr-server/src/test/java/org/apache/jackrabbit/webdav/simple/LitmusTest.java

Modified: jackrabbit/trunk/jackrabbit-jcr-server/src/test/java/org/apache/jackrabbit/webdav/simple/LitmusTest.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-jcr-server/src/test/java/org/apache/jackrabbit/webdav/simple/LitmusTest.java?rev=1159197&r1=1159196&r2=1159197&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-jcr-server/src/test/java/org/apache/jackrabbit/webdav/simple/LitmusTest.java
(original)
+++ jackrabbit/trunk/jackrabbit-jcr-server/src/test/java/org/apache/jackrabbit/webdav/simple/LitmusTest.java
Thu Aug 18 12:48:28 2011
@@ -26,6 +26,7 @@ import junit.framework.TestCase;
 
 import org.apache.commons.io.IOUtils;
 import org.apache.jackrabbit.commons.JcrUtils;
+import org.apache.jackrabbit.util.Text;
 import org.mortbay.jetty.Server;
 import org.mortbay.jetty.bio.SocketConnector;
 import org.mortbay.jetty.servlet.Context;
@@ -47,7 +48,7 @@ public class LitmusTest extends TestCase
         if (Boolean.getBoolean("jackrabbit.test.integration")
                 && isLitmusAvailable(litmus)) {
             final Repository repository = JcrUtils.getRepository(
-                    "jcr-jackrabbit://" + dir.getCanonicalPath());
+                    "jcr-jackrabbit://" + Text.escapePath(dir.getCanonicalPath()));
             Session session = repository.login(); // for the TransientRepository
             try {
                 SocketConnector connector = new SocketConnector();



Mime
View raw message