tinkerpop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spmalle...@apache.org
Subject [1/4] incubator-tinkerpop git commit: Provide the right expected schema on graph configuration in IoGraphTest.
Date Thu, 03 Dec 2015 20:42:39 GMT
Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 1134ad2a5 -> 641a8cb04


Provide the right expected schema on graph configuration in IoGraphTest.

Without this change, the graph woudl either create the wrong schema or not create one at all.
 Either would be a problem for graphs with strong typing.


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

Branch: refs/heads/master
Commit: 937ebbc495803840cf26aec9b410fc3577a1251c
Parents: cdc063a
Author: Stephen Mallette <spmva@genoprime.com>
Authored: Thu Dec 3 06:29:43 2015 -0500
Committer: Stephen Mallette <spmva@genoprime.com>
Committed: Thu Dec 3 06:29:43 2015 -0500

----------------------------------------------------------------------
 .../org/apache/tinkerpop/gremlin/structure/io/IoGraphTest.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/937ebbc4/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoGraphTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoGraphTest.java
b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoGraphTest.java
index bc1296a..fece4a9 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoGraphTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/io/IoGraphTest.java
@@ -100,7 +100,7 @@ public class IoGraphTest extends AbstractGremlinTest {
         try {
             graph.io(ioBuilderToTest).writeGraph(f.getAbsolutePath());
 
-            final Configuration configuration = graphProvider.newGraphConfiguration("readGraph",
this.getClass(), name.getMethodName(), LoadGraphWith.GraphData.MODERN);
+            final Configuration configuration = graphProvider.newGraphConfiguration("readGraph",
this.getClass(), name.getMethodName(), LoadGraphWith.GraphData.CLASSIC);
             final Graph g1 = graphProvider.openTestGraph(configuration);
             g1.io(ioBuilderToTest).readGraph(f.getAbsolutePath());
 
@@ -118,7 +118,7 @@ public class IoGraphTest extends AbstractGremlinTest {
     @FeatureRequirement(featureClass = Graph.Features.EdgeFeatures.class, feature = Graph.Features.EdgeFeatures.FEATURE_ADD_EDGES)
     @FeatureRequirement(featureClass = Graph.Features.VertexFeatures.class, feature = Graph.Features.VertexFeatures.FEATURE_ADD_VERTICES)
     public void shouldMigrateClassicGraph() throws Exception {
-        final Configuration configuration = graphProvider.newGraphConfiguration("readGraph",
this.getClass(), name.getMethodName(), null);
+        final Configuration configuration = graphProvider.newGraphConfiguration("readGraph",
this.getClass(), name.getMethodName(), LoadGraphWith.GraphData.CLASSIC);
         graphProvider.clear(configuration);
         final Graph g1 = graphProvider.openTestGraph(configuration);
 


Mime
View raw message