Author: andy
Date: Wed Aug 27 15:41:32 2014
New Revision: 1620914

URL: http://svn.apache.org/r1620914
Log:
If the mf:result is a bnode, return null for the name (calling test must cope 
with this).

Modified:
    jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/junit/TestItem.java

Modified: 
jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/junit/TestItem.java
URL: 
http://svn.apache.org/viewvc/jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/junit/TestItem.java?rev=1620914&r1=1620913&r2=1620914&view=diff
==============================================================================
--- 
jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/junit/TestItem.java 
(original)
+++ 
jena/trunk/jena-arq/src/test/java/com/hp/hpl/jena/sparql/junit/TestItem.java 
Wed Aug 27 15:41:32 2014
@@ -33,6 +33,7 @@ import com.hp.hpl.jena.sparql.vocabulary
 import com.hp.hpl.jena.sparql.vocabulary.VocabTestQuery ;
 import com.hp.hpl.jena.util.FileManager ;
 import com.hp.hpl.jena.util.iterator.ClosableIterator ;
+import com.hp.hpl.jena.util.junit.TestException ;
 import com.hp.hpl.jena.util.junit.TestUtils ;
 import com.hp.hpl.jena.vocabulary.RDF ;
 import com.hp.hpl.jena.vocabulary.RDFS ;
@@ -196,7 +197,11 @@ public class TestItem
     }
 
     private String _getResultFile() {
-        return TestUtils.getLiteralOrURI(testResource, TestManifest.result) ;
+        try {
+            // It's bnode in some update tests.
+            // The Update test code managed building the result.
+            return TestUtils.getLiteralOrURI(testResource, 
TestManifest.result) ;
+        } catch (TestException ex) { return null ; }
     }
 
     private String _getComment() {


Reply via email to