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 2015/10/07 21:56:28 UTC

incubator-tinkerpop git commit: a bug in Giraph's HadoopGremlinPluginTest.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/group_step_2 a6145d7ac -> 773d4df5f


a bug in Giraph's HadoopGremlinPluginTest.


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

Branch: refs/heads/group_step_2
Commit: 773d4df5f28272fd6158f6b38c2eff5e72b7645b
Parents: a6145d7
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Wed Oct 7 13:56:24 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Wed Oct 7 13:56:24 2015 -0600

----------------------------------------------------------------------
 .../giraph/groovy/plugin/HadoopGremlinPluginTest.java    | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/773d4df5/giraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/giraph/groovy/plugin/HadoopGremlinPluginTest.java
----------------------------------------------------------------------
diff --git a/giraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/giraph/groovy/plugin/HadoopGremlinPluginTest.java b/giraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/giraph/groovy/plugin/HadoopGremlinPluginTest.java
index 37d7145..4d00096 100644
--- a/giraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/giraph/groovy/plugin/HadoopGremlinPluginTest.java
+++ b/giraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/giraph/groovy/plugin/HadoopGremlinPluginTest.java
@@ -39,6 +39,7 @@ import org.junit.Before;
 import org.junit.Test;
 
 import java.util.Arrays;
+import java.util.Collection;
 import java.util.List;
 
 import static org.junit.Assert.*;
@@ -135,17 +136,17 @@ public class HadoopGremlinPluginTest extends AbstractGremlinTest {
         AbstractGremlinProcessTest.checkResults(Arrays.asList("ripple", "lop"), traversal);
         assertTrue((Boolean) this.console.eval("hdfs.exists('target/test-output/m')"));
         assertTrue((Boolean) this.console.eval("hdfs.exists('target/test-output/" + TraverserMapReduce.TRAVERSERS + "')"));
-        final List<KeyValue<Integer, BulkSet<String>>> mList = IteratorUtils.asList(this.console.eval("hdfs.head('target/test-output/m',ObjectWritable)"));
+        final List<KeyValue<Integer, Collection<String>>> mList = IteratorUtils.asList(this.console.eval("hdfs.head('target/test-output/m',ObjectWritable)"));
         assertEquals(4, mList.size());
         mList.forEach(keyValue -> {
             if (keyValue.getKey().equals(29))
-                assertEquals(1l, keyValue.getValue().get("marko"));
+                assertTrue(keyValue.getValue().contains("marko"));
             else if (keyValue.getKey().equals(35))
-                assertEquals(1l, keyValue.getValue().get("peter"));
+                assertTrue(keyValue.getValue().contains("peter"));
             else if (keyValue.getKey().equals(32))
-                assertEquals(1l, keyValue.getValue().get("josh"));
+                assertTrue(keyValue.getValue().contains("josh"));
             else if (keyValue.getKey().equals(27))
-                assertEquals(1l, keyValue.getValue().get("vadas"));
+                assertTrue(keyValue.getValue().contains("vadas"));
             else
                 throw new IllegalStateException("The provided key/value is unknown: " + keyValue);
         });