File tree 1 file changed +13
-0
lines changed
src/test/java/com/tinkerpop/frames
1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ public void testGettingDomainAndRange() {
46
46
47
47
Person marko = framedGraph .getVertex (1 , Person .class );
48
48
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
+
49
55
CreatedBy createdBy = lop .getCreatedBy ().iterator ().next ();
50
56
assertEquals (lop , createdBy .getDomain ());
51
57
assertEquals (marko , createdBy .getRange ());
@@ -57,8 +63,15 @@ public void testGettingDomainAndRange() {
57
63
// the now deprecated annotations are quite confusing:
58
64
assertEquals (lop , created .getRange ()); //range actually returns a Person, not a Project...
59
65
assertEquals (marko , created .getDomain ()); //domain actually returns a Project, not a Person...
66
+
67
+
68
+
69
+
60
70
}
61
71
72
+
73
+
74
+
62
75
/**
63
76
* Uses deprecated Domain/range annotations
64
77
*/
You can’t perform that action at this time.
0 commit comments