You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2015/03/09 20:51:37 UTC

incubator-tinkerpop git commit: Fix compile errors in VertexTest.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/newapi 2a7237530 -> 9f476557b


Fix compile errors in VertexTest.


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

Branch: refs/heads/newapi
Commit: 9f476557b43e75ee929553421a6a6a656af845b6
Parents: 2a72375
Author: Stephen Mallette <sp...@apache.org>
Authored: Mon Mar 9 15:19:12 2015 -0400
Committer: Stephen Mallette <sp...@apache.org>
Committed: Mon Mar 9 15:19:12 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/VertexTest.java       | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/9f476557/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexTest.java
index 104c8c7..4c771ae 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/VertexTest.java
@@ -212,7 +212,7 @@ public class VertexTest {
             assertEquals("marko", v.<String>value("name"));
             assertEquals(34, (int) v.property("age").value());
             assertEquals("marko", v.<String>property("name").value());
-            assertEquals(2, v.properties().count().next().intValue());
+            assertEquals(2, IteratorUtils.count(v.properties()));
             assertEquals(2, v.keys().size());
             assertTrue(v.keys().contains("name"));
             assertTrue(v.keys().contains("age"));
@@ -225,7 +225,7 @@ public class VertexTest {
             assertEquals("marko rodriguez", v.<String>value("name"));
             assertEquals(34, (int) v.property("age").value());
             assertEquals("marko rodriguez", v.<String>property("name").value());
-            assertEquals(2, v.properties().count().next().intValue());
+            assertEquals(2, IteratorUtils.count(v.properties()));
             assertEquals(2, v.keys().size());
             assertTrue(v.keys().contains("name"));
             assertTrue(v.keys().contains("age"));
@@ -233,7 +233,7 @@ public class VertexTest {
             assertVertexEdgeCounts(1, 0).accept(g);
 
             v.property("location", "santa fe");
-            assertEquals(3, v.properties().count().next().intValue());
+            assertEquals(3, IteratorUtils.count(v.properties()));
             assertEquals(3, v.keys().size());
             assertEquals("santa fe", v.property("location").value());
             assertEquals(v.property("location"), v.property("location"));
@@ -243,9 +243,9 @@ public class VertexTest {
             assertTrue(v.keys().contains("location"));
             v.property("location").remove();
             assertVertexEdgeCounts(1, 0).accept(g);
-            assertEquals(2, v.properties().count().next().intValue());
+            assertEquals(2, IteratorUtils.count(v.properties()));
             v.properties().remove();
-            assertEquals(0, v.properties().count().next().intValue());
+            assertEquals(0, IteratorUtils.count(v.properties()));
             assertVertexEdgeCounts(1, 0).accept(g);
         }
 
@@ -381,7 +381,7 @@ public class VertexTest {
             assertTrue(keys.contains("location"));
             assertTrue(keys.contains("status"));
 
-            final List<VertexProperty<Object>> m = v.properties().toList();
+            final List<VertexProperty<Object>> m = IteratorUtils.list(v.properties());
             assertEquals(3, m.size());
             assertTrue(m.stream().anyMatch(p -> p.key().equals("name")));
             assertTrue(m.stream().anyMatch(p -> p.key().equals("location")));
@@ -431,7 +431,7 @@ public class VertexTest {
         @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_ADD_VERTICES)
         public void shouldReturnEmptyIteratorIfNoProperties() {
             final Vertex v = g.addVertex();
-            assertEquals(0, v.properties().count().next().intValue());
+            assertEquals(0, IteratorUtils.count(v.properties()));
         }
     }