sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1511649 - in /sis/branches/0.3: ./ storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
Date Thu, 08 Aug 2013 09:29:20 GMT
Author: desruisseaux
Date: Thu Aug  8 09:29:20 2013
New Revision: 1511649

URL: http://svn.apache.org/r1511649
Log:
Bug fix merge.

Modified:
    sis/branches/0.3/   (props changed)
    sis/branches/0.3/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java

Propchange: sis/branches/0.3/
------------------------------------------------------------------------------
  Merged /sis/branches/JDK7:r1511646

Modified: sis/branches/0.3/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
URL: http://svn.apache.org/viewvc/sis/branches/0.3/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java?rev=1511649&r1=1511648&r2=1511649&view=diff
==============================================================================
--- sis/branches/0.3/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
[UTF-8] (original)
+++ sis/branches/0.3/storage/sis-storage/src/test/java/org/apache/sis/storage/StorageConnectorTest.java
[UTF-8] Thu Aug  8 09:29:20 2013
@@ -22,6 +22,7 @@ import java.nio.ByteBuffer;
 import java.nio.channels.ReadableByteChannel;
 import javax.imageio.ImageIO;
 import javax.imageio.stream.ImageInputStream;
+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;
@@ -56,7 +57,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