You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2014/05/30 22:06:24 UTC

svn commit: r1598727 - /jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java

Author: andy
Date: Fri May 30 20:06:23 2014
New Revision: 1598727

URL: http://svn.apache.org/r1598727
Log:
ARQ change

Modified:
    jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java

Modified: jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java?rev=1598727&r1=1598726&r2=1598727&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java (original)
+++ jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/junit/QueryTestTDB.java Fri May 30 20:06:23 2014
@@ -25,6 +25,7 @@ import org.slf4j.LoggerFactory ;
 
 import com.hp.hpl.jena.query.* ;
 import com.hp.hpl.jena.rdf.model.Model ;
+import com.hp.hpl.jena.sparql.SystemARQ ;
 import com.hp.hpl.jena.sparql.engine.QueryEngineFactory ;
 import com.hp.hpl.jena.sparql.engine.QueryExecutionBase ;
 import com.hp.hpl.jena.sparql.engine.ref.QueryEngineRef ;
@@ -80,10 +81,14 @@ public class QueryTestTDB extends EarlTe
         this.results = rs ;
     }
     
+    boolean oldValueUsePlainGraph = SystemARQ.UsePlainGraph ;
     
     @Override public void setUpTest()
     {
         dataset = TDBFactory.createDataset() ;
+        // Make sure a plain, no sameValueAs graph is used.
+        oldValueUsePlainGraph = SystemARQ.UsePlainGraph ;
+        SystemARQ.UsePlainGraph = true ;
         setupData() ;
     }
     
@@ -94,6 +99,7 @@ public class QueryTestTDB extends EarlTe
             dataset.close() ;
             dataset = null ;
         }
+        SystemARQ.UsePlainGraph = oldValueUsePlainGraph ;
     }
     
     public void setupData()
@@ -125,12 +131,7 @@ public class QueryTestTDB extends EarlTe
         }
         
         Query query = QueryFactory.read(queryFile) ;
-        
-        // Make sure a plain, no sameValueAs graph is used.
-        Object oldValue = ARQ.getContext().get(ARQ.strictGraph) ;
-        ARQ.setTrue(ARQ.strictGraph) ;
         Dataset ds = DatasetFactory.create(defaultGraphURIs, namedGraphURIs) ;
-        ARQ.getContext().set(ARQ.strictGraph, oldValue) ;
         
         // ---- First, get the expected results by executing in-memory or from a results file.