tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [18/50] incubator-tinkerpop git commit: Bind the empty graph to tests that don't have LoadGraphWith annotation.
Date Thu, 17 Mar 2016 20:23:35 GMT
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 <spmva@genoprime.com>
Authored: Tue Mar 15 12:23:03 2016 -0400
Committer: Stephen Mallette <spmva@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";


Mime
View raw message