-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
seaching on edges in schema is no good. Defaults to public.
- Loading branch information
pieter
committed
Sep 10, 2016
1 parent
92f014c
commit 84822e0
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
sqlg-test/src/main/java/org/umlg/sqlg/test/edges/TestEdgeFromDifferentSchema.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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()); | ||
} | ||
} |