Revert "JAVA-20167 Additional changes for test MovieRepositoryIntegrationTest"
This reverts commit 2a4950a9d7
.
This commit is contained in:
parent
4000ff6ce9
commit
19039a3d2e
|
@ -120,7 +120,4 @@ libraries-2/src/test/resources/crawler4j/**
|
|||
devDb*.db
|
||||
|
||||
#jaxb
|
||||
*.xjb
|
||||
|
||||
#spring-data-neo4j
|
||||
persistence-modules/spring-data-neo4j/data/**
|
||||
*.xjb
|
|
@ -108,7 +108,7 @@
|
|||
<dependency>
|
||||
<groupId>org.neo4j.test</groupId>
|
||||
<artifactId>neo4j-harness</artifactId>
|
||||
<version>${neo4j.version}</version>
|
||||
<version>5.5.0</version>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
|
@ -129,8 +129,6 @@
|
|||
<neo4j-ogm.version>4.0.4</neo4j-ogm.version>
|
||||
<neo4j-jdbc.version>4.0.9</neo4j-jdbc.version>
|
||||
<neo4j-ogm-embedded-driver.version>3.2.39</neo4j-ogm-embedded-driver.version>
|
||||
<org.slf4j.version>2.0.7</org.slf4j.version>
|
||||
<logback.version>1.4.7</logback.version>
|
||||
</properties>
|
||||
|
||||
</project>
|
|
@ -13,7 +13,6 @@ import com.baeldung.spring.data.neo4j.repository.PersonRepository;
|
|||
|
||||
import org.junit.jupiter.api.AfterAll;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.neo4j.harness.Neo4j;
|
||||
import org.neo4j.harness.Neo4jBuilders;
|
||||
|
@ -33,10 +32,10 @@ import java.util.*;
|
|||
class MovieRepositoryIntegrationTest {
|
||||
|
||||
@Autowired
|
||||
private MovieRepository movieRepository;
|
||||
private static MovieRepository movieRepository;
|
||||
|
||||
@Autowired
|
||||
private PersonRepository personRepository;
|
||||
private static PersonRepository personRepository;
|
||||
|
||||
public MovieRepositoryIntegrationTest() {
|
||||
}
|
||||
|
@ -44,14 +43,11 @@ class MovieRepositoryIntegrationTest {
|
|||
private static Neo4j embeddedDatabaseServer;
|
||||
|
||||
@BeforeAll
|
||||
static void setup() {
|
||||
static void initializeNeo4j() {
|
||||
|
||||
embeddedDatabaseServer = Neo4jBuilders.newInProcessBuilder()
|
||||
.withDisabledServer()
|
||||
.build();
|
||||
}
|
||||
|
||||
@BeforeEach
|
||||
void initializeNeo4j() {
|
||||
|
||||
System.out.println("seeding embedded database");
|
||||
Movie italianJob = new Movie();
|
||||
|
|
Loading…
Reference in New Issue