Polish “Replace custom Neo4j container with Testcontainers version”

See gh-15638
This commit is contained in:
Andy Wilkinson
2019-02-12 09:25:07 +00:00
parent 316126e8f0
commit 01b8e2c834
4 changed files with 17 additions and 14 deletions

View File

@@ -296,12 +296,12 @@
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>testcontainers</artifactId>
<artifactId>neo4j</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>neo4j</artifactId>
<artifactId>testcontainers</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

View File

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

View File

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