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 2016/03/17 21:23:35 UTC
[18/50] incubator-tinkerpop git commit: Bind the empty graph to tests
that don't have LoadGraphWith annotation.
Bind the empty graph to tests that don't have LoadGraphWith annotation.
Project: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/commit/663c5e36
Tree: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/tree/663c5e36
Diff: http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/diff/663c5e36
Branch: refs/heads/TINKERPOP-575
Commit: 663c5e36c96558d564a7587213ed5e94cafa528e
Parents: 03dbf20
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Tue Mar 15 12:23:03 2016 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Thu Mar 17 14:05:20 2016 -0400
----------------------------------------------------------------------
.../org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java | 3 +++
1 file changed, 3 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/663c5e36/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java
----------------------------------------------------------------------
diff --git a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java
index bfc401c..37128c7 100644
--- a/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java
+++ b/gremlin-server/src/test/java/org/apache/tinkerpop/gremlin/remote/RemoteGraphProvider.java
@@ -116,6 +116,9 @@ public class RemoteGraphProvider extends AbstractGraphProvider {
private static String getServerGraphName(final LoadGraphWith.GraphData loadGraphWith) {
final String serverGraphName;
+
+ if (null == loadGraphWith) return "graph";
+
switch (loadGraphWith) {
case CLASSIC:
serverGraphName = "classic";