marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wik...@apache.org
Subject [1/2] marmotta git commit: MARMOTTA-640: added regresion test to prevent lateral issues on fixing this issue
Date Fri, 10 Jun 2016 14:55:45 GMT
Repository: marmotta
Updated Branches:
  refs/heads/MARMOTTA-640 861efd789 -> 7df4029df


MARMOTTA-640: added regresion test to prevent lateral issues on fixing this issue


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

Branch: refs/heads/MARMOTTA-640
Commit: 02209d340d5c83acd670fa8daa3bc1b9f793ba1c
Parents: 861efd7
Author: Sergio Fernández <wikier@apache.org>
Authored: Fri Jun 10 15:33:34 2016 +0200
Committer: Sergio Fernández <wikier@apache.org>
Committed: Fri Jun 10 15:33:34 2016 +0200

----------------------------------------------------------------------
 .../marmotta/kiwi/sparql/test/KiWiSparqlTest.java   | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/02209d34/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java
----------------------------------------------------------------------
diff --git a/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java
b/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java
index 7a4c66a..aa52bde 100644
--- a/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java
+++ b/libraries/kiwi/kiwi-sparql/src/test/java/org/apache/marmotta/kiwi/sparql/test/KiWiSparqlTest.java
@@ -23,6 +23,7 @@ import info.aduna.iteration.Iterations;
 import org.apache.commons.collections.CollectionUtils;
 import org.apache.commons.io.IOUtils;
 import org.apache.marmotta.kiwi.config.KiWiConfiguration;
+import org.apache.marmotta.kiwi.persistence.pgsql.PostgreSQLDialect;
 import org.apache.marmotta.kiwi.sail.KiWiStore;
 import org.apache.marmotta.kiwi.sparql.sail.KiWiSparqlSail;
 import org.apache.marmotta.kiwi.test.junit.KiWiDatabaseRunner;
@@ -55,6 +56,7 @@ import java.util.Set;
  * @author Sergio Fernámdez
  */
 @RunWith(KiWiDatabaseRunner.class)
+@KiWiDatabaseRunner.ForDialects(PostgreSQLDialect.class)
 public class KiWiSparqlTest {
 
     final Logger log = LoggerFactory.getLogger(this.getClass());
@@ -341,4 +343,18 @@ public class KiWiSparqlTest {
         }
     }
 
+    @Test
+    public void testMarmotta640Regresion() throws Exception {
+        RepositoryConnection conn = repository.getConnection();
+        try {
+            conn.begin();
+            String queryString = "SELECT * WHERE { { ?x ?y ?z } UNION { ?x ?y2 ?z2 } }";
+            TupleQuery query = conn.prepareTupleQuery(QueryLanguage.SPARQL, queryString);
+            TupleQueryResult results = query.evaluate();
+            results.close();
+        } finally {
+            conn.close();
+        }
+    }
+
 }


Mime
View raw message