@@ -36,14 +36,20 @@ class RelationshipIntersectFactoryLocatorTest {
3636 void supportsHugeGraph () {
3737 var graph = TestSupport .fromGdl ("()-->()" ).graph ();
3838 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 );
4043 }
4144
4245 @ Test
4346 void supportsUnionGraph () {
4447 var graph = TestSupport .fromGdl ("()-[:A]->()-[:B]->()" ).graph ();
4548 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 );
4753 }
4854
4955 @ Test
@@ -53,6 +59,9 @@ void supportsNodeFilteredGraph() {
5359 .build ()
5460 .getGraph ("A" , "A" , Optional .empty ());
5561 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 );
5766 }
5867}
0 commit comments