You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by wi...@apache.org on 2014/05/05 20:42:46 UTC
[04/11] git commit: preventing potential portability issues on
ldclient tests
preventing potential portability issues on ldclient tests
Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/e6807666
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/e6807666
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/e6807666
Branch: refs/heads/develop
Commit: e680766665f68cb092a48384386f12989f1ddd59
Parents: def9d41
Author: Sergio Fernández <wi...@apache.org>
Authored: Tue Apr 15 14:50:59 2014 +0200
Committer: Sergio Fernández <wi...@apache.org>
Committed: Tue Apr 15 14:50:59 2014 +0200
----------------------------------------------------------------------
.../apache/marmotta/ldclient/test/provider/ProviderTestBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/marmotta/blob/e6807666/libraries/ldclient/ldclient-core/src/test/java/org/apache/marmotta/ldclient/test/provider/ProviderTestBase.java
----------------------------------------------------------------------
diff --git a/libraries/ldclient/ldclient-core/src/test/java/org/apache/marmotta/ldclient/test/provider/ProviderTestBase.java b/libraries/ldclient/ldclient-core/src/test/java/org/apache/marmotta/ldclient/test/provider/ProviderTestBase.java
index df0936c..1ff772f 100644
--- a/libraries/ldclient/ldclient-core/src/test/java/org/apache/marmotta/ldclient/test/provider/ProviderTestBase.java
+++ b/libraries/ldclient/ldclient-core/src/test/java/org/apache/marmotta/ldclient/test/provider/ProviderTestBase.java
@@ -98,7 +98,7 @@ public class ProviderTestBase {
// run a SPARQL test to see if the returned data is correct
InputStream sparql = this.getClass().getResourceAsStream(sparqlFile);
- BooleanQuery testLabel = connection.prepareBooleanQuery(QueryLanguage.SPARQL, IOUtils.toString(sparql));
+ BooleanQuery testLabel = connection.prepareBooleanQuery(QueryLanguage.SPARQL, IOUtils.toString(sparql, "UTF-8"));
Assert.assertTrue("SPARQL test query failed", testLabel.evaluate());
if(log.isDebugEnabled()) {