tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [1/4] incubator-tinkerpop git commit: Broke apart some combined tests in HasTest.
Date Thu, 05 May 2016 19:40:51 GMT
Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/tp31 c653c138d -> d239a5ac9


Broke apart some combined tests in HasTest.

We long ago determined that this wasn't a good pattern. Must have missed this one when we
cleaned up last time. CTR


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

Branch: refs/heads/tp31
Commit: 3b93ee29b2649ed2e1eda378ac72df8542117d17
Parents: c653c13
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Thu May 5 15:10:00 2016 -0400
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Thu May 5 15:10:00 2016 -0400

----------------------------------------------------------------------
 .../process/traversal/step/filter/HasTest.java  | 27 ++++++++++++++------
 1 file changed, 19 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/3b93ee29/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/HasTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/HasTest.java
b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/HasTest.java
index e5f2281..1a2c967 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/HasTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/filter/HasTest.java
@@ -149,14 +149,25 @@ public abstract class HasTest extends AbstractGremlinProcessTest {
     @Test
     @LoadGraphWith(MODERN)
     public void g_V_hasXage_gt_30X() {
-        Arrays.asList(get_g_V_hasXage_gt_30X(), get_g_V_hasXage_isXgt_30XX()).forEach(traversal
-> {
-            printTraversalForm(traversal);
-            final List<Vertex> list = traversal.toList();
-            assertEquals(2, list.size());
-            for (final Element v : list) {
-                assertTrue(v.<Integer>value("age") > 30);
-            }
-        });
+        final Traversal<Vertex, Vertex> traversal = get_g_V_hasXage_gt_30X();
+        printTraversalForm(traversal);
+        final List<Vertex> list = traversal.toList();
+        assertEquals(2, list.size());
+        for (final Element v : list) {
+            assertTrue(v.<Integer>value("age") > 30);
+        }
+    }
+
+    @Test
+    @LoadGraphWith(MODERN)
+    public void g_V_hasXage_isXgt_30XX() {
+        final Traversal<Vertex, Vertex> traversal = get_g_V_hasXage_isXgt_30XX();
+        printTraversalForm(traversal);
+        final List<Vertex> list = traversal.toList();
+        assertEquals(2, list.size());
+        for (final Element v : list) {
+            assertTrue(v.<Integer>value("age") > 30);
+        }
     }
 
     @Test


Mime
View raw message