commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [07/16] commons-rdf git commit: COMMONSRDF-51: Use patterns for remove/contains
Date Wed, 08 Feb 2017 14:44:02 GMT
COMMONSRDF-51: Use patterns for remove/contains


Project: http://git-wip-us.apache.org/repos/asf/commons-rdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-rdf/commit/c729469a
Tree: http://git-wip-us.apache.org/repos/asf/commons-rdf/tree/c729469a
Diff: http://git-wip-us.apache.org/repos/asf/commons-rdf/diff/c729469a

Branch: refs/heads/master
Commit: c729469aed46349b927d4038e67ff4fb5fa8ebd2
Parents: 448c20b
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Mon Jan 23 11:50:23 2017 +0000
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Mon Jan 23 11:50:23 2017 +0000

----------------------------------------------------------------------
 .../org/apache/commons/rdf/api/AbstractGraphTest.java    | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-rdf/blob/c729469a/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
----------------------------------------------------------------------
diff --git a/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java b/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
index eba8888..e18ca08 100644
--- a/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
+++ b/api/src/test/java/org/apache/commons/rdf/api/AbstractGraphTest.java
@@ -410,7 +410,8 @@ public abstract class AbstractGraphTest {
         assertTrue(graph.contains(null, null, mixed));
 
         // Remove should also honour any case
-        graph.remove(example1, greeting, mixed);
+        graph.remove(example1, null, mixed);
+        // no more greetings of any kind
         assertFalse(graph.contains(null, greeting, null));
     }
 
@@ -460,7 +461,8 @@ public abstract class AbstractGraphTest {
             assertTrue(g.contains(exampleTR, null, lowerROOT));
             assertTrue(g.contains(exampleTR, null, mixed));
             assertTrue(g.contains(exampleTR, null, mixedROOT));
-            g.remove(exampleTR, greeting, mixed);
+            g.remove(exampleTR, null, mixed);
+            // No more greetings for exampleTR
             assertFalse(g.contains(exampleTR, null, null));
 
             // What about the triple we added while in ROOT locale?
@@ -470,8 +472,9 @@ public abstract class AbstractGraphTest {
             assertTrue(g.contains(exampleROOT, null, upper));
             assertTrue(g.contains(exampleROOT, null, lower));
             assertTrue(g.contains(exampleROOT, null, mixed));
-            g.remove(exampleROOT, greeting, mixed);
-            assertFalse(g.contains(exampleROOT, null, null));
+            g.remove(exampleROOT, null, mixed);
+            // No more greetings of any kind
+            assertFalse(g.contains(null, null, null));
 
 
         } finally {


Mime
View raw message