Skip to content

Commit 5baf00f

Browse files
minor testing change to avoid unused class warning.
1 parent 4d6cbb3 commit 5baf00f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

algo/src/test/java/org/neo4j/gds/triangle/intersect/RelationshipIntersectFactoryLocatorTest.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)