Commit 01b8e2c8 authored by Andy Wilkinson's avatar Andy Wilkinson

Polish “Replace custom Neo4j container with Testcontainers version”

See gh-15638
parent 316126e8
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<maven.version>3.5.4</maven.version> <maven.version>3.5.4</maven.version>
<maven-resolver.version>1.1.1</maven-resolver.version> <maven-resolver.version>1.1.1</maven-resolver.version>
<spock.version>1.0-groovy-2.4</spock.version> <spock.version>1.0-groovy-2.4</spock.version>
<testcontainers.version>1.10.6</testcontainers.version>
<dependency-management-plugin.version>1.0.6.RELEASE</dependency-management-plugin.version> <dependency-management-plugin.version>1.0.6.RELEASE</dependency-management-plugin.version>
</properties> </properties>
<scm> <scm>
...@@ -96,16 +97,6 @@ ...@@ -96,16 +97,6 @@
<artifactId>mockwebserver</artifactId> <artifactId>mockwebserver</artifactId>
<version>3.9.0</version> <version>3.9.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>1.10.6</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>neo4j</artifactId>
<version>1.10.6</version>
</dependency>
<dependency> <dependency>
<groupId>com.vaadin.external.google</groupId> <groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId> <artifactId>android-json</artifactId>
...@@ -247,6 +238,16 @@ ...@@ -247,6 +238,16 @@
<artifactId>spock-spring</artifactId> <artifactId>spock-spring</artifactId>
<version>${spock.version}</version> <version>${spock.version}</version>
</dependency> </dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>neo4j</artifactId>
<version>${testcontainers.version}</version>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<version>${testcontainers.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.zeroturnaround</groupId> <groupId>org.zeroturnaround</groupId>
<artifactId>zt-zip</artifactId> <artifactId>zt-zip</artifactId>
......
...@@ -296,12 +296,12 @@ ...@@ -296,12 +296,12 @@
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.testcontainers</groupId> <groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId> <artifactId>neo4j</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.testcontainers</groupId> <groupId>org.testcontainers</groupId>
<artifactId>neo4j</artifactId> <artifactId>testcontainers</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -47,7 +47,8 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType; ...@@ -47,7 +47,8 @@ import static org.assertj.core.api.Assertions.assertThatExceptionOfType;
public class DataNeo4jTestIntegrationTests { public class DataNeo4jTestIntegrationTests {
@ClassRule @ClassRule
public static Neo4jContainer neo4j = new Neo4jContainer().withAdminPassword(null); public static Neo4jContainer<?> neo4j = new Neo4jContainer<>()
.withAdminPassword(null);
@Autowired @Autowired
private Session session; private Session session;
......
...@@ -44,7 +44,8 @@ import static org.assertj.core.api.Assertions.assertThat; ...@@ -44,7 +44,8 @@ import static org.assertj.core.api.Assertions.assertThat;
public class DataNeo4jTestWithIncludeFilterIntegrationTests { public class DataNeo4jTestWithIncludeFilterIntegrationTests {
@ClassRule @ClassRule
public static Neo4jContainer neo4j = new Neo4jContainer().withAdminPassword(null); public static Neo4jContainer<?> neo4j = new Neo4jContainer<>()
.withAdminPassword(null);
@Autowired @Autowired
private ExampleService service; private ExampleService service;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment