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/05/11 22:12:46 UTC

incubator-tinkerpop git commit: added back a test for DetachGraphTest as if the label of the adjacent vertex doesn't exist, fail silently.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 4bbbb6365 -> d7836ce0f


added back a test for DetachGraphTest as if the label of the adjacent vertex doesn't exist, fail silently.


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

Branch: refs/heads/master
Commit: d7836ce0f18a2f556e39a3895635e6d88c31ce6d
Parents: 4bbbb63
Author: Marko A. Rodriguez <ok...@gmail.com>
Authored: Mon May 11 14:12:43 2015 -0600
Committer: Marko A. Rodriguez <ok...@gmail.com>
Committed: Mon May 11 14:12:43 2015 -0600

----------------------------------------------------------------------
 .../gremlin/structure/util/detached/DetachedGraphTest.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/d7836ce0/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/util/detached/DetachedGraphTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/util/detached/DetachedGraphTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/util/detached/DetachedGraphTest.java
index fd92b8f..4990a74 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/util/detached/DetachedGraphTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/util/detached/DetachedGraphTest.java
@@ -26,6 +26,7 @@ import org.apache.tinkerpop.gremlin.FeatureRequirement;
 import org.apache.tinkerpop.gremlin.LoadGraphWith;
 import org.apache.tinkerpop.gremlin.TestHelper;
 import org.apache.tinkerpop.gremlin.structure.Direction;
+import org.apache.tinkerpop.gremlin.structure.Edge;
 import org.apache.tinkerpop.gremlin.structure.Graph;
 import org.apache.tinkerpop.gremlin.structure.T;
 import org.apache.tinkerpop.gremlin.structure.Vertex;
@@ -84,12 +85,12 @@ public class DetachedGraphTest extends AbstractGremlinTest {
         TestHelper.validateVertexEquality(detachedVertex, createdVertex, false);
         TestHelper.validateVertexEquality(detachedVertex, starVertex, false);
 
-      /*  starGraph.getStarVertex().edges(Direction.BOTH).forEachRemaining(starEdge -> {
+        starGraph.getStarVertex().edges(Direction.BOTH).forEachRemaining(starEdge -> {
             final DetachedEdge detachedEdge = DetachedFactory.detach(starEdge, true);
             final Edge createdEdge = detachedEdge.attach(Attachable.Method.create(random.nextBoolean() ? graph : createdVertex));
             TestHelper.validateEdgeEquality(detachedEdge, starEdge);
             TestHelper.validateEdgeEquality(detachedEdge, createdEdge);
-        });  */ // not possible because star edges don't have adjacent vertex labels
+        });
 
     }
 }