Skip to content

Commit 743c966

Browse files
refactor: Disable tests related to dynamic labels on older Neo4j versions.
1 parent b2fea93 commit 743c966

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/test/java/org/springframework/data/neo4j/integration/imperative/RepositoryIT.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
import org.junit.jupiter.api.BeforeEach;
5555
import org.junit.jupiter.api.Nested;
5656
import org.junit.jupiter.api.Test;
57+
import org.junit.jupiter.api.condition.EnabledIf;
5758
import org.junit.jupiter.api.extension.ExtendWith;
5859
import org.junit.jupiter.params.ParameterizedTest;
5960
import org.junit.jupiter.params.provider.Arguments;
@@ -3921,7 +3922,12 @@ void findByIdWithInheritance(@Autowired BaseClassRepository baseClassRepository)
39213922
});
39223923
}
39233924

3925+
boolean supportsCypher5LabelExpressions() {
3926+
return neo4jConnectionSupport.isCypher5SyntaxCompatible();
3927+
}
3928+
39243929
@Test
3930+
@EnabledIf("supportsCypher5LabelExpressions")
39253931
void findByDynamicLabel(@Autowired BaseClassRepository baseClassRepository) {
39263932

39273933
Inheritance.ConcreteClassA ccA = new Inheritance.ConcreteClassA("cc1", "test");

0 commit comments

Comments
 (0)