@@ -36,14 +36,20 @@ class RelationshipIntersectFactoryLocatorTest {
36
36
void supportsHugeGraph () {
37
37
var graph = TestSupport .fromGdl ("()-->()" ).graph ();
38
38
assertThat (graph ).isInstanceOf (HugeGraph .class );
39
- assertThat (RelationshipIntersectFactoryLocator .lookup (graph )).isPresent ();
39
+ var intersect = RelationshipIntersectFactoryLocator .lookup (graph );
40
+ assertThat (intersect ).isPresent ()
41
+ .get ()
42
+ .isInstanceOf (HugeGraphIntersect .HugeGraphIntersectFactory .class );
40
43
}
41
44
42
45
@ Test
43
46
void supportsUnionGraph () {
44
47
var graph = TestSupport .fromGdl ("()-[:A]->()-[:B]->()" ).graph ();
45
48
assertThat (graph ).isInstanceOf (UnionGraph .class );
46
- assertThat (RelationshipIntersectFactoryLocator .lookup (graph )).isPresent ();
49
+ var intersect = RelationshipIntersectFactoryLocator .lookup (graph );
50
+ assertThat (intersect ).isPresent ()
51
+ .get ()
52
+ .isInstanceOf (UnionGraphIntersect .UnionGraphIntersectFactory .class );
47
53
}
48
54
49
55
@ Test
@@ -53,6 +59,9 @@ void supportsNodeFilteredGraph() {
53
59
.build ()
54
60
.getGraph ("A" , "A" , Optional .empty ());
55
61
assertThat (graph ).isInstanceOf (NodeFilteredGraph .class );
56
- assertThat (RelationshipIntersectFactoryLocator .lookup (graph )).isPresent ();
62
+ var intersect = RelationshipIntersectFactoryLocator .lookup (graph );
63
+ assertThat (intersect ).isPresent ()
64
+ .get ()
65
+ .isInstanceOf (NodeFilteredGraphIntersect .NodeFilteredGraphIntersectFactory .class );
57
66
}
58
67
}
0 commit comments