Skip to content

Commit 850bc45

Browse files
committed
GH-2681 - Upgrade Neo4j container to 5.
1 parent ba896be commit 850bc45

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/test/java/org/springframework/data/neo4j/documentation/spring_boot/ReactiveTemplateExampleTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
// tag::faq.template-reactive-pt2[]
4949
class ReactiveTemplateExampleTest {
5050

51-
@Container private static Neo4jContainer<?> neo4jContainer = new Neo4jContainer<>("neo4j:4.4");
51+
@Container private static Neo4jContainer<?> neo4jContainer = new Neo4jContainer<>("neo4j:5");
5252

5353
@DynamicPropertySource
5454
static void neo4jProperties(DynamicPropertyRegistry registry) {

src/test/java/org/springframework/data/neo4j/integration/multiple_ctx_imperative/MultipleContextsIT.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -53,21 +53,21 @@
5353
public class MultipleContextsIT {
5454

5555
@Container
56-
private static Neo4jContainer container1 = new Neo4jContainer<>("neo4j:4.4")
57-
.withAdminPassword("secret1");
56+
private static Neo4jContainer container1 = new Neo4jContainer<>("neo4j:5")
57+
.withAdminPassword("verysecret1");
5858

5959
@Container
60-
private static Neo4jContainer container2 = new Neo4jContainer<>("neo4j:4.4")
61-
.withAdminPassword("secret2");
60+
private static Neo4jContainer container2 = new Neo4jContainer<>("neo4j:5")
61+
.withAdminPassword("verysecret2");
6262

6363
@DynamicPropertySource
6464
static void neo4jSettings(DynamicPropertyRegistry registry) {
6565

6666
registry.add("database1.url", container1::getBoltUrl);
67-
registry.add("database1.password", () -> "secret1");
67+
registry.add("database1.password", () -> "verysecret1");
6868

6969
registry.add("database2.url", container2::getBoltUrl);
70-
registry.add("database2.password", () -> "secret2");
70+
registry.add("database2.password", () -> "verysecret2");
7171
}
7272

7373
@Test // DATAGRAPH-1441

src/test/java/org/springframework/data/neo4j/test/Neo4jExtension.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static class ContainerAdapter implements ExtensionContext.Store.CloseableResourc
294294

295295
private final String repository = Optional.ofNullable(System.getenv(SYS_PROPERTY_NEO4J_REPOSITORY)).orElse("neo4j");
296296

297-
private final String imageVersion = Optional.ofNullable(System.getenv(SYS_PROPERTY_NEO4J_VERSION)).orElse("4.4");
297+
private final String imageVersion = Optional.ofNullable(System.getenv(SYS_PROPERTY_NEO4J_VERSION)).orElse("5");
298298

299299
private final boolean containerReuseSupported = TestcontainersConfiguration
300300
.getInstance().environmentSupportsReuse();

0 commit comments

Comments
 (0)