From 01b8e2c8343a3423f19c0cc521ddb2afb0ea2e98 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Tue, 12 Feb 2019 09:25:07 +0000 Subject: [PATCH] =?UTF-8?q?Polish=20=E2=80=9CReplace=20custom=20Neo4j=20co?= =?UTF-8?q?ntainer=20with=20Testcontainers=20version=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See gh-15638 --- .../spring-boot-parent/pom.xml | 21 ++++++++++--------- .../spring-boot-test-autoconfigure/pom.xml | 4 ++-- .../neo4j/DataNeo4jTestIntegrationTests.java | 3 ++- ...TestWithIncludeFilterIntegrationTests.java | 3 ++- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/spring-boot-project/spring-boot-parent/pom.xml b/spring-boot-project/spring-boot-parent/pom.xml index 94422417f53..ba4913b0637 100644 --- a/spring-boot-project/spring-boot-parent/pom.xml +++ b/spring-boot-project/spring-boot-parent/pom.xml @@ -26,6 +26,7 @@ 3.5.4 1.1.1 1.0-groovy-2.4 + 1.10.6 1.0.6.RELEASE @@ -96,16 +97,6 @@ mockwebserver 3.9.0 - - org.testcontainers - testcontainers - 1.10.6 - - - org.testcontainers - neo4j - 1.10.6 - com.vaadin.external.google android-json @@ -247,6 +238,16 @@ spock-spring ${spock.version} + + org.testcontainers + neo4j + ${testcontainers.version} + + + org.testcontainers + testcontainers + ${testcontainers.version} + org.zeroturnaround zt-zip diff --git a/spring-boot-project/spring-boot-test-autoconfigure/pom.xml b/spring-boot-project/spring-boot-test-autoconfigure/pom.xml index 8fe04ca32bd..435141c7905 100644 --- a/spring-boot-project/spring-boot-test-autoconfigure/pom.xml +++ b/spring-boot-project/spring-boot-test-autoconfigure/pom.xml @@ -296,12 +296,12 @@ org.testcontainers - testcontainers + neo4j test org.testcontainers - neo4j + testcontainers test diff --git a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java index bb7b2a098ad..3e18d24fb46 100644 --- a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java +++ b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestIntegrationTests.java @@ -47,7 +47,8 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType; public class DataNeo4jTestIntegrationTests { @ClassRule - public static Neo4jContainer neo4j = new Neo4jContainer().withAdminPassword(null); + public static Neo4jContainer neo4j = new Neo4jContainer<>() + .withAdminPassword(null); @Autowired private Session session; diff --git a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java index 06583af89e4..08afe8509a1 100644 --- a/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java +++ b/spring-boot-project/spring-boot-test-autoconfigure/src/test/java/org/springframework/boot/test/autoconfigure/data/neo4j/DataNeo4jTestWithIncludeFilterIntegrationTests.java @@ -44,7 +44,8 @@ import static org.assertj.core.api.Assertions.assertThat; public class DataNeo4jTestWithIncludeFilterIntegrationTests { @ClassRule - public static Neo4jContainer neo4j = new Neo4jContainer().withAdminPassword(null); + public static Neo4jContainer neo4j = new Neo4jContainer<>() + .withAdminPassword(null); @Autowired private ExampleService service;