Skip to content

Commit c41468d

Browse files
committed
Neo4j: Fix test names for fixed version tests.
The versions need to be set explicitly to avoid the wrong version for testing when using the test constant.
1 parent b0392e9 commit c41468d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/neo4j/src/test/java/org/testcontainers/containers/Neo4jContainerTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,22 +74,22 @@ void shouldCopyDatabase() {
7474
void shouldFailOnCopyDatabaseForDefaultNeo4j4Image() {
7575
assertThatIllegalArgumentException()
7676
.isThrownBy(() -> {
77-
new Neo4jContainer("neo4j:4.4.1").withDatabase(MountableFile.forClasspathResource("/test-graph.db"));
77+
new Neo4jContainer("neo4j:4.4").withDatabase(MountableFile.forClasspathResource("/test-graph.db"));
7878
})
7979
.withMessage("Copying database folder is not supported for Neo4j instances with version 4.0 or higher.");
8080
}
8181

8282
@Test
83-
void shouldFailOnCopyDatabaseForCustomNeo4j4Image() {
83+
void shouldFailOnCopyDatabaseForCustomNeo4j5Image() {
8484
assertThatIllegalArgumentException()
8585
.isThrownBy(() -> {
86-
new Neo4jContainer("neo4j:5.26.10").withDatabase(MountableFile.forClasspathResource("/test-graph.db"));
86+
new Neo4jContainer("neo4j:5.26").withDatabase(MountableFile.forClasspathResource("/test-graph.db"));
8787
})
8888
.withMessage("Copying database folder is not supported for Neo4j instances with version 4.0 or higher.");
8989
}
9090

9191
@Test
92-
void shouldFailOnCopyDatabaseForCustomNonSemverNeo4j4Image() {
92+
void shouldFailOnCopyDatabaseForCustomNonSemverNeo4jLatestImage() {
9393
assertThatIllegalArgumentException()
9494
.isThrownBy(() -> {
9595
new Neo4jContainer("neo4j:latest").withDatabase(MountableFile.forClasspathResource("/test-graph.db"));

0 commit comments

Comments
 (0)