sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1511646 - /sis/branches/JDK7/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
Date Thu, 08 Aug 2013 09:26:21 GMT
Author: desruisseaux
Date: Thu Aug  8 09:26:21 2013
New Revision: 1511646

URL: http://svn.apache.org/r1511646
Log:
Fix a test failure when the path to the project contains a space
(or any other encoded character in the URL).

Modified:
    sis/branches/JDK7/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java

Modified: sis/branches/JDK7/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK7/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java?rev=1511646&r1=1511645&r2=1511646&view=diff
==============================================================================
--- sis/branches/JDK7/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
[UTF-8] (original)
+++ sis/branches/JDK7/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
[UTF-8] Thu Aug  8 09:26:21 2013
@@ -25,6 +25,7 @@ import java.nio.channels.ReadableByteCha
 import javax.imageio.ImageIO;
 import javax.imageio.stream.ImageInputStream;
 import java.sql.Connection;
+import org.apache.sis.setup.OptionKey;
 import org.apache.sis.internal.storage.ChannelDataInput;
 import org.apache.sis.internal.storage.ChannelImageInputStream;
 import org.apache.sis.test.DependsOnMethod;
@@ -59,7 +60,9 @@ public final strictfp class StorageConne
         final String name = c.getSimpleName() + ".class";
         final Object storage = asStream ? c.getResourceAsStream(name) : c.getResource(name);
         assertNotNull(storage);
-        return new StorageConnector(storage);
+        final StorageConnector connector = new StorageConnector(storage);
+        connector.setOption(OptionKey.URL_ENCODING, "UTF-8");
+        return connector;
     }
 
     /**



Mime
View raw message