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 <st...@apache.org> Authored: Fri Nov 4 10:14:55 2016 +0100 Committer: Stian Soiland-Reyes <st...@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();