jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cla...@apache.org
Subject [6/8] jena git commit: Fixed file name resoulution issue in testSimpleLoadImplicitBase() that failed in some cases
Date Sat, 08 Oct 2016 00:02:04 GMT
Fixed file name resoulution issue in testSimpleLoadImplicitBase() that
failed in some cases

Project: http://git-wip-us.apache.org/repos/asf/jena/repo
Commit: http://git-wip-us.apache.org/repos/asf/jena/commit/a340937c
Tree: http://git-wip-us.apache.org/repos/asf/jena/tree/a340937c
Diff: http://git-wip-us.apache.org/repos/asf/jena/diff/a340937c

Branch: refs/heads/master
Commit: a340937c45f9840435980f4d5534c0b324b8251a
Parents: dabc43f
Author: Claude Warren <claude@apache.org>
Authored: Sat Oct 8 00:29:56 2016 +0100
Committer: Claude Warren <claude@apache.org>
Committed: Sat Oct 8 00:29:56 2016 +0100

----------------------------------------------------------------------
 .../test/java/org/apache/jena/rdf/model/test/TestModelRead.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/jena/blob/a340937c/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestModelRead.java
----------------------------------------------------------------------
diff --git a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestModelRead.java b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestModelRead.java
index 019f886..a9f9c76 100644
--- a/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestModelRead.java
+++ b/jena-core/src/test/java/org/apache/jena/rdf/model/test/TestModelRead.java
@@ -19,6 +19,7 @@
 package org.apache.jena.rdf.model.test ;
 
 import org.apache.jena.iri.IRIException ;
+import org.apache.jena.n3.IRIResolver;
 import org.apache.jena.rdf.model.Model ;
 import org.apache.jena.rdf.model.ModelFactory ;
 import org.apache.jena.rdf.model.test.helpers.ModelHelper ;
@@ -69,7 +70,7 @@ public class TestModelRead extends AbstractModelTestBase
     @SuppressWarnings("deprecation")
     public void testSimpleLoadImplictBase() throws IRIException {
         final Model mBasedImplicit = createModel() ;
-        final String fn = org.apache.jena.n3.IRIResolver.resolveFileURL(getFileName("modelReading/based.n3"))
;
+        String fn=IRIResolver.resolveGlobal(getFileName("modelReading/based.n3"));
         final Model wanted = createModel().add(ModelHelper.resource(fn), ModelHelper.property("ja:predicate"),
                                                ModelHelper.resource("ja:object")) ;
         mBasedImplicit.read(fn, "N3") ;


Mime
View raw message