Skip to content

Commit ee8d8a8

Browse files
committed
Restore know unit test
1 parent 06be530 commit ee8d8a8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/test/java/com/tinkerpop/frames/FramedEdgeTest.java

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ public void testGettingDomainAndRange() {
4646

4747
Person marko = framedGraph.getVertex(1, Person.class);
4848
Project lop = framedGraph.getVertex(3, Project.class);
49+
Person vadas = framedGraph.getVertex(2, Person.class);
50+
51+
Knows knows = framedGraph.getEdge(7, Direction.OUT, Knows.class);
52+
assertEquals(marko, knows.getDomain());
53+
assertEquals(vadas, knows.getRange());
54+
4955
CreatedBy createdBy = lop.getCreatedBy().iterator().next();
5056
assertEquals(lop, createdBy.getDomain());
5157
assertEquals(marko, createdBy.getRange());
@@ -57,8 +63,15 @@ public void testGettingDomainAndRange() {
5763
// the now deprecated annotations are quite confusing:
5864
assertEquals(lop, created.getRange()); //range actually returns a Person, not a Project...
5965
assertEquals(marko, created.getDomain()); //domain actually returns a Project, not a Person...
66+
67+
68+
69+
6070
}
6171

72+
73+
74+
6275
/**
6376
* Uses deprecated Domain/range annotations
6477
*/

0 commit comments

Comments
 (0)