Skip to content

Commit

Permalink
refactor: Disable tests related to dynamic labels on older Neo4j vers…
Browse files Browse the repository at this point in the history
…ions.
  • Loading branch information
michael-simons committed Apr 28, 2023
1 parent b2fea93 commit 743c966
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.condition.EnabledIf;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.Arguments;
Expand Down Expand Up @@ -3921,7 +3922,12 @@ void findByIdWithInheritance(@Autowired BaseClassRepository baseClassRepository)
});
}

boolean supportsCypher5LabelExpressions() {
return neo4jConnectionSupport.isCypher5SyntaxCompatible();
}

@Test
@EnabledIf("supportsCypher5LabelExpressions")
void findByDynamicLabel(@Autowired BaseClassRepository baseClassRepository) {

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

0 comments on commit 743c966

Please sign in to comment.