Polish “Replace custom Neo4j container with Testcontainers version”

See gh-15638
pull/15943/head
Andy Wilkinson 6 years ago
parent 316126e8f0
commit 01b8e2c834

@ -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 @@
<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 @@
<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 @@
</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;
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;
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;

Loading…
Cancel
Save