You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@clerezza.apache.org by mi...@apache.org on 2010/04/06 11:40:04 UTC

svn commit: r931063 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/test/java/org/apache/clerezza/rdf/utils/TestGraphNode.java

Author: mir
Date: Tue Apr  6 09:40:04 2010
New Revision: 931063

URL: http://svn.apache.org/viewvc?rev=931063&view=rev
Log:
CLEREZZA-171: adjusted to modified RandomMgraph

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/test/java/org/apache/clerezza/rdf/utils/TestGraphNode.java

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/test/java/org/apache/clerezza/rdf/utils/TestGraphNode.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/test/java/org/apache/clerezza/rdf/utils/TestGraphNode.java?rev=931063&r1=931062&r2=931063&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/test/java/org/apache/clerezza/rdf/utils/TestGraphNode.java (original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.utils/src/test/java/org/apache/clerezza/rdf/utils/TestGraphNode.java Tue Apr  6 09:40:04 2010
@@ -34,7 +34,7 @@ import org.apache.clerezza.rdf.core.UriR
 import org.apache.clerezza.rdf.core.impl.PlainLiteralImpl;
 import org.apache.clerezza.rdf.core.impl.SimpleMGraph;
 import org.apache.clerezza.rdf.core.impl.TripleImpl;
-import org.apache.clerezza.rdf.core.test.RandomGraph;
+import org.apache.clerezza.rdf.core.test.RandomMGraph;
 
 /**
  *
@@ -74,10 +74,7 @@ public class TestGraphNode {
 
 	@Test
 	public void testGetSubjectAndObjectNodes() {
-		RandomGraph graph = new RandomGraph(5, 20, new SimpleMGraph());
-		for (int i = 0; i < 200; i++) {
-			graph.evolve();
-		}
+		RandomMGraph graph = new RandomMGraph(500, 20, new SimpleMGraph());
 		for (int j = 0; j < 200; j++) {
 			Triple randomTriple = graph.getRandomTriple();
 			GraphNode node = new GraphNode(randomTriple.getSubject(), graph);