Fixed up some tests that expected ANY IdManager

Now that the IdManager for modern graph is integer based these tests had to be 
adjusted CTR


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

Branch: refs/heads/TINKERPOP-1489
Commit: 8637b951a2ff2768e2723b5d5336e661bd372807
Parents: 1bdd57e
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Fri Jun 2 20:15:33 2017 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Fri Jun 2 20:15:33 2017 -0400

----------------------------------------------------------------------
 .../TinkerGraphGraphSONSerializerV2d0Test.java   | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8637b951/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphGraphSONSerializerV2d0Test.java
----------------------------------------------------------------------
diff --git 
a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphGraphSONSerializerV2d0Test.java
 
b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphGraphSONSerializerV2d0Test.java
index 3b09026..e7f4265 100644
--- 
a/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphGraphSONSerializerV2d0Test.java
+++ 
b/tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphGraphSONSerializerV2d0Test.java
@@ -138,10 +138,11 @@ public class TinkerGraphGraphSONSerializerV2d0Test {
      * Asserts the approximateGraphsChecks function fails when expected. 
Vertex ids.
      */
     @Test
-    public void shouldLooseTypesWithGraphSONNoTypesForVertexIds() throws 
IOException {
+    public void shouldLoseTypesWithGraphSONNoTypesForVertexIds() throws 
IOException {
         final GraphWriter writer = getWriter(noTypesMapperV2d0);
         final GraphReader reader = getReader(noTypesMapperV2d0);
-        final Graph sampleGraph1 = TinkerFactory.createModern();
+        final TinkerGraph sampleGraph1 = TinkerGraph.open();
+        TinkerFactory.generateModern(sampleGraph1);
         sampleGraph1.addVertex(T.id, 100L, "name", "kevin");
         try (final ByteArrayOutputStream out = new ByteArrayOutputStream()) {
             writer.writeGraph(out, sampleGraph1);
@@ -157,10 +158,11 @@ public class TinkerGraphGraphSONSerializerV2d0Test {
      * Asserts the approximateGraphsChecks function fails when expected. 
Vertex props.
      */
     @Test
-    public void shouldLooseTypesWithGraphSONNoTypesForVertexProps() throws 
IOException {
+    public void shouldLoseTypesWithGraphSONNoTypesForVertexProps() throws 
IOException {
         final GraphWriter writer = getWriter(noTypesMapperV2d0);
         final GraphReader reader = getReader(noTypesMapperV2d0);
-        final Graph sampleGraph1 = TinkerFactory.createModern();
+        final TinkerGraph sampleGraph1 = TinkerGraph.open();
+        TinkerFactory.generateModern(sampleGraph1);
 
         sampleGraph1.addVertex(T.id, 100, "name", "kevin", "uuid", 
UUID.randomUUID());
         try (final ByteArrayOutputStream out = new ByteArrayOutputStream()) {
@@ -177,10 +179,11 @@ public class TinkerGraphGraphSONSerializerV2d0Test {
      * Asserts the approximateGraphsChecks function fails when expected. Edge 
ids.
      */
     @Test
-    public void shouldLooseTypesWithGraphSONNoTypesForEdgeIds() throws 
IOException {
+    public void shouldLoseTypesWithGraphSONNoTypesForEdgeIds() throws 
IOException {
         final GraphWriter writer = getWriter(noTypesMapperV2d0);
-        final  GraphReader reader = getReader(noTypesMapperV2d0);
-        final Graph sampleGraph1 = TinkerFactory.createModern();
+        final GraphReader reader = getReader(noTypesMapperV2d0);
+        final TinkerGraph sampleGraph1 = TinkerGraph.open();
+        TinkerFactory.generateModern(sampleGraph1);
         final  Vertex v1 = sampleGraph1.addVertex(T.id, 100, "name", "kevin");
         v1.addEdge("hello", sampleGraph1.traversal().V().has("name", 
"marko").next(), T.id, 101L);
         try (final ByteArrayOutputStream out = new ByteArrayOutputStream()) {
@@ -197,7 +200,7 @@ public class TinkerGraphGraphSONSerializerV2d0Test {
      * Asserts the approximateGraphsChecks function fails when expected. Edge 
props.
      */
     @Test
-    public void shouldLooseTypesWithGraphSONNoTypesForEdgeProps() throws 
IOException {
+    public void shouldLoseTypesWithGraphSONNoTypesForEdgeProps() throws 
IOException {
         final GraphWriter writer = getWriter(noTypesMapperV2d0);
         final GraphReader reader = getReader(noTypesMapperV2d0);
         final Graph sampleGraph1 = TinkerFactory.createModern();

Reply via email to