From 96919b4fcd11997cdda1e06ecf68653a4c8ec467 Mon Sep 17 00:00:00 2001 From: Gerrit Meier Date: Mon, 27 Mar 2023 10:12:27 +0200 Subject: [PATCH] Use current Neo4j version in testcontainers See gh-34775 --- .../testcontainers/dynamicproperties/MyIntegrationTests.java | 4 ++-- .../testing/testcontainers/vanilla/MyIntegrationTests.java | 4 ++-- .../testcontainers/dynamicproperties/MyIntegrationTests.kt | 2 +- .../testing/testcontainers/vanilla/MyIntegrationTests.kt | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.java b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.java index d49df7c7509e..58f734d2046b 100644 --- a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.java +++ b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -30,7 +30,7 @@ class MyIntegrationTests { @Container - static Neo4jContainer neo4j = new Neo4jContainer<>("neo4j:4.2"); + static Neo4jContainer neo4j = new Neo4jContainer<>("neo4j:5"); @Test void myTest() { diff --git a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.java b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.java index 30f4a5f719fc..ddb8ce7d387c 100644 --- a/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.java +++ b/spring-boot-project/spring-boot-docs/src/main/java/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2021 the original author or authors. + * Copyright 2012-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -28,7 +28,7 @@ class MyIntegrationTests { @Container - static Neo4jContainer neo4j = new Neo4jContainer<>("neo4j:4.2"); + static Neo4jContainer neo4j = new Neo4jContainer<>("neo4j:5"); @Test void myTest() { diff --git a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.kt b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.kt index 5ac30bce134b..fa3c9c91100b 100644 --- a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.kt +++ b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/dynamicproperties/MyIntegrationTests.kt @@ -36,7 +36,7 @@ internal class MyIntegrationTests { companion object { @Container - var neo4j: Neo4jContainer<*> = Neo4jContainer("neo4j:4.2") + var neo4j: Neo4jContainer<*> = Neo4jContainer("neo4j:5") @DynamicPropertySource fun neo4jProperties(registry: DynamicPropertyRegistry) { diff --git a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.kt b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.kt index 41fa408739d1..1aaea0d120f8 100644 --- a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.kt +++ b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/howto/testing/testcontainers/vanilla/MyIntegrationTests.kt @@ -33,7 +33,7 @@ internal class MyIntegrationTests { companion object { @Container - var neo4j: Neo4jContainer<*> = Neo4jContainer("neo4j:4.2") + var neo4j: Neo4jContainer<*> = Neo4jContainer("neo4j:5") } }