diff --git a/sqlg-test/src/main/java/org/umlg/sqlg/AllTest.java b/sqlg-test/src/main/java/org/umlg/sqlg/AllTest.java index c6b2cce0a..7fb820b40 100644 --- a/sqlg-test/src/main/java/org/umlg/sqlg/AllTest.java +++ b/sqlg-test/src/main/java/org/umlg/sqlg/AllTest.java @@ -135,7 +135,9 @@ TestMultipleLabels.class, TestColumnNamePropertyNameMapScope.class, TestJNDIInitialization.class, - TestSchemaTableTreeAndHasContainer.class + TestSchemaTableTreeAndHasContainer.class, + //TODO fails, issue #65 +// TestEdgeFromDifferentSchema.class }) public class AllTest { } diff --git a/sqlg-test/src/main/java/org/umlg/sqlg/AnyTest.java b/sqlg-test/src/main/java/org/umlg/sqlg/AnyTest.java index bf992d030..216cf37ae 100644 --- a/sqlg-test/src/main/java/org/umlg/sqlg/AnyTest.java +++ b/sqlg-test/src/main/java/org/umlg/sqlg/AnyTest.java @@ -2,7 +2,7 @@ import org.junit.runner.RunWith; import org.junit.runners.Suite; -import org.umlg.sqlg.test.topology.TestTopologyUpgrade; +import org.umlg.sqlg.test.edges.TestEdgeFromDifferentSchema; /** * Date: 2014/07/16 @@ -10,7 +10,7 @@ */ @RunWith(Suite.class) @Suite.SuiteClasses({ - TestTopologyUpgrade.class + TestEdgeFromDifferentSchema.class }) public class AnyTest { } diff --git a/sqlg-test/src/main/java/org/umlg/sqlg/test/edges/TestEdgeFromDifferentSchema.java b/sqlg-test/src/main/java/org/umlg/sqlg/test/edges/TestEdgeFromDifferentSchema.java new file mode 100644 index 000000000..f8a94aed8 --- /dev/null +++ b/sqlg-test/src/main/java/org/umlg/sqlg/test/edges/TestEdgeFromDifferentSchema.java @@ -0,0 +1,24 @@ +package org.umlg.sqlg.test.edges; + +import org.apache.tinkerpop.gremlin.structure.T; +import org.apache.tinkerpop.gremlin.structure.Vertex; +import org.junit.Test; +import org.umlg.sqlg.test.BaseTest; + +import static org.junit.Assert.assertEquals; + +/** + * Date: 2016/09/10 + * Time: 3:39 PM + */ +public class TestEdgeFromDifferentSchema extends BaseTest { + + @Test + public void test() { + Vertex a1 = this.sqlgGraph.addVertex(T.label, "A.A"); + Vertex b1 = this.sqlgGraph.addVertex(T.label, "B.B"); + a1.addEdge("eee", b1); + this.sqlgGraph.tx().commit(); + assertEquals(1, this.sqlgGraph.traversal().E().hasLabel("eee").count().next().intValue()); + } +}