commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [1/2] incubator-commonsrdf git commit: Avoid looking for BlankNode in a java.util.List
Date Fri, 04 Nov 2016 09:15:22 GMT
Repository: incubator-commonsrdf
Updated Branches:
  refs/heads/master c6fe35a03 -> 17dab006d


Avoid looking for BlankNode in a java.util.List


Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/33bc626a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/33bc626a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/33bc626a

Branch: refs/heads/master
Commit: 33bc626a016091598fe1324e1bf00cb5be37a9ad
Parents: c6fe35a
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Fri Nov 4 10:14:55 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Fri Nov 4 10:14:55 2016 +0100

----------------------------------------------------------------------
 .../java/org/apache/commons/rdf/api/AbstractDatasetTest.java  | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/33bc626a/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java b/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
index d4375f6..6308cc9 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/AbstractDatasetTest.java
@@ -134,7 +134,12 @@ public abstract class AbstractDatasetTest {
             quads.add(t);
         }
         assertEquals(dataset.size(), quads.size());
-        assertTrue(quads.contains(bobNameQuad));
+        
+        //assertTrue(quads.contains(bobNameQuad));
+        // java.util.List won't do any BlankNode mapping, so 
+        // instead bobNameQuad of let's check for an IRI-centric quad 
+        Quad q = factory.createQuad(graph1, alice, name, aliceName);
+        quads.contains(q);
 
         // aborted iteration
         Iterable<Quad> iterate = dataset.iterate();


Mime
View raw message