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 2015/06/01 18:27:38 UTC

incubator-tinkerpop git commit: Closed graph in test.

Repository: incubator-tinkerpop
Updated Branches:
  refs/heads/master 8250a2f91 -> 15d8da0e7


Closed graph in test.

Not clearing the graph was causing problems for neo4j related tests around MultiMetaNeo4jGraphStructureStandardTest
shouldMaintainOriginalConfigurationObjectGivenToFactory


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

Branch: refs/heads/master
Commit: 15d8da0e76701c096f91ca06d04ce38ff77263ca
Parents: 8250a2f
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Mon Jun 1 12:24:46 2015 -0400
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Mon Jun 1 12:26:37 2015 -0400

----------------------------------------------------------------------
 .../tinkerpop/gremlin/structure/GraphConstructionTest.java       | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tinkerpop/blob/15d8da0e/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphConstructionTest.java
----------------------------------------------------------------------
diff --git a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphConstructionTest.java b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphConstructionTest.java
index 16f893d..62dfa32 100644
--- a/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphConstructionTest.java
+++ b/gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/structure/GraphConstructionTest.java
@@ -63,7 +63,7 @@ public class GraphConstructionTest extends AbstractGremlinTest {
      * A {@link Graph} should maintain the original {@code Configuration} object passed to it via {@link GraphFactory}.
      */
     @Test
-    public void shouldMaintainOriginalConfigurationObjectGivenToFactory() {
+    public void shouldMaintainOriginalConfigurationObjectGivenToFactory() throws Exception {
         final Configuration originalConfig = graphProvider.newGraphConfiguration("temp2", this.getClass(), name.getMethodName(), null);
         final Graph createdGraph = GraphFactory.open(originalConfig);
 
@@ -77,5 +77,7 @@ public class GraphConstructionTest extends AbstractGremlinTest {
         // need some keys in the originalConfig for this test to be meaningful
         assertTrue(keyCount.get() > 0);
         assertEquals(keyCount.get(), IteratorUtils.count(configInGraph.getKeys()));
+
+        graphProvider.clear(createdGraph, originalConfig);
     }
 }