commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject [49/50] [abbrv] incubator-commonsrdf git commit: Avoid ConcurrentModification
Date Wed, 26 Oct 2016 11:51:51 GMT
Avoid ConcurrentModification

(can't modify graph while streaming it)


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

Branch: refs/heads/COMMONSRDF-46
Commit: 2a5dbf9ff0633f1f7f518ef1431d53e21831281f
Parents: 5c190d2
Author: Stian Soiland-Reyes <stain@apache.org>
Authored: Wed Oct 26 12:35:00 2016 +0100
Committer: Stian Soiland-Reyes <stain@apache.org>
Committed: Wed Oct 26 12:35:00 2016 +0100

----------------------------------------------------------------------
 .../apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.java | 5 -----
 1 file changed, 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/2a5dbf9f/jena/src/test/java/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.java
----------------------------------------------------------------------
diff --git a/jena/src/test/java/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.java
b/jena/src/test/java/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.java
index 393bc8f..728bba2 100644
--- a/jena/src/test/java/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.java
+++ b/jena/src/test/java/org/apache/commons/rdf/jena/TestJenaGraphToCommonsRDFGraph.java
@@ -130,11 +130,6 @@ public class TestJenaGraphToCommonsRDFGraph {
 	        System.out.println("\n==== Write Jena graph directly\n") ;
 	        RDFDataMgr.write(System.out, jGraph, Lang.TTL) ;
         }
-        
-        // Can stream modify the jGraph? Let's try to remove..
-        assertFalse(jGraph.isEmpty());
-        graph.stream().forEach(graph::remove);
-        assertTrue(jGraph.isEmpty());
     }
 }
 


Mime
View raw message