Skip to content

Commit

Permalink
added failing test.
Browse files Browse the repository at this point in the history
seaching on edges in schema is no good. Defaults to public.
  • Loading branch information
pieter committed Sep 10, 2016
1 parent 92f014c commit 84822e0
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 3 deletions.
4 changes: 3 additions & 1 deletion sqlg-test/src/main/java/org/umlg/sqlg/AllTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@
TestMultipleLabels.class,
TestColumnNamePropertyNameMapScope.class,
TestJNDIInitialization.class,
TestSchemaTableTreeAndHasContainer.class
TestSchemaTableTreeAndHasContainer.class,
//TODO fails, issue #65
// TestEdgeFromDifferentSchema.class
})
public class AllTest {
}
4 changes: 2 additions & 2 deletions sqlg-test/src/main/java/org/umlg/sqlg/AnyTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

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
* Time: 12:10 PM
*/
@RunWith(Suite.class)
@Suite.SuiteClasses({
TestTopologyUpgrade.class
TestEdgeFromDifferentSchema.class
})
public class AnyTest {
}
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());
}
}

0 comments on commit 84822e0

Please sign in to comment.