You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by ok...@apache.org on 2016/01/12 22:10:53 UTC

[06/15] incubator-tinkerpop git commit: Fix bad test comparison

Fix bad test comparison


Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/413caf54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/413caf54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/413caf54

Branch: refs/heads/master
Commit: 413caf5434dbceb5842c8e92d78f8012ab8f83c5
Parents: 4f7ed10
Author: Benjamin Han <be...@siftsec.com>
Authored: Thu Dec 10 09:02:30 2015 -0800
Committer: Benjamin Han <be...@siftsec.com>
Committed: Thu Dec 10 09:02:30 2015 -0800

----------------------------------------------------------------------
 .../org/apache/tinkerpop/gremlin/structure/io/IoTest.java    | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/413caf54/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
index bae5df3..2635b85 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoTest.java
@@ -276,8 +276,8 @@ public class IoTest {
                 r.readGraph(in, target);
             }
 
-            assertEquals(source.traversal().V().count(), target.traversal().V().count());
-            assertEquals(source.traversal().E().count(), target.traversal().E().count());
+            assertEquals(IteratorUtils.count(source.vertices()), IteratorUtils.count(target.vertices()));
+            assertEquals(IteratorUtils.count(source.edges()), IteratorUtils.count(target.vertices()));
         }
     }
 
@@ -452,8 +452,8 @@ public class IoTest {
                 throw new RuntimeException(ioe);
             }
 
-            assertEquals(source.traversal().V().count(), target.traversal().V().count());
-            assertEquals(source.traversal().E().count(), target.traversal().E().count());
+            assertEquals(IteratorUtils.count(source.vertices()), IteratorUtils.count(target.vertices()));
+            assertEquals(IteratorUtils.count(source.edges()), IteratorUtils.count(target.vertices()));
         }
     }