tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ok...@apache.org
Subject tinkerpop git commit: an == is a bad test, it has to be equals() as detachment now creates a new object.
Date Thu, 29 Jun 2017 13:57:49 GMT
Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1701 601f9c306 -> e3d7463bb


an == is a bad test, it has to be equals() as detachment now creates a new object.


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

Branch: refs/heads/TINKERPOP-1701
Commit: e3d7463bb0469d507602e0744e34c9818b97ba24
Parents: 601f9c3
Author: Marko A. Rodriguez <okrammarko@gmail.com>
Authored: Thu Jun 29 07:57:46 2017 -0600
Committer: Marko A. Rodriguez <okrammarko@gmail.com>
Committed: Thu Jun 29 07:57:46 2017 -0600

----------------------------------------------------------------------
 .../spark/structure/io/gryo/GryoSerializerIntegrateTest.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/e3d7463b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/gryo/GryoSerializerIntegrateTest.java
----------------------------------------------------------------------
diff --git a/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/gryo/GryoSerializerIntegrateTest.java
b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/gryo/GryoSerializerIntegrateTest.java
index aa154d8..a34e58a 100644
--- a/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/gryo/GryoSerializerIntegrateTest.java
+++ b/spark-gremlin/src/test/java/org/apache/tinkerpop/gremlin/spark/structure/io/gryo/GryoSerializerIntegrateTest.java
@@ -72,7 +72,7 @@ public class GryoSerializerIntegrateTest extends AbstractSparkTest {
         Graph graph = GraphFactory.open(configuration);
         final GraphTraversal.Admin<Vertex, Map<Vertex, Collection<Vertex>>>
traversal = graph.traversal().withComputer(SparkGraphComputer.class).V().group("m").<Map<Vertex,
Collection<Vertex>>>cap("m").asAdmin();
         assertTrue(traversal.hasNext());
-        assertTrue(traversal.next() == traversal.getSideEffects().get("m"));
+        assertEquals(traversal.next(), traversal.getSideEffects().get("m"));
         assertFalse(traversal.hasNext());
         assertTrue(traversal.getSideEffects().exists("m"));
         assertTrue(traversal.getSideEffects().get("m") instanceof Map);


Mime
View raw message