Add Neo4j 5.x as test harness supported.
This is still the same as with 4.x, thus we just mention it in the combination with 4.x to avoid any upcoming questions.
This commit is contained in:
@@ -39,7 +39,7 @@ No.
|
||||
An embedded database is usually represented by an instance of `org.neo4j.graphdb.GraphDatabaseService` and has no Bolt connector out of the box.
|
||||
|
||||
SDN can however work very much with Neo4j's test harness, the test harness is specially meant to be a drop-in replacement for the real database.
|
||||
Support for both Neo4j 3.5 and 4.x test harness is implemented via link:{java-driver-starter-href}[the Spring Boot starter for the driver].
|
||||
Support for Neo4j 3.5, 4.x and 5.x test harness is implemented via link:{java-driver-starter-href}[the Spring Boot starter for the driver].
|
||||
Have a look at the corresponding module `org.neo4j.driver:neo4j-java-driver-test-harness-spring-boot-autoconfigure`.
|
||||
|
||||
[[faq.change-driver-version]]
|
||||
|
||||
@@ -95,8 +95,8 @@ It is an embedded instance that is especially useful when testing stored procedu
|
||||
The test harness can however be used to test an application as well.
|
||||
As it brings up a database inside the same JVM as your application, performance and timings may not resemble your production setup.
|
||||
|
||||
For your convenience we provide three possible scenarios, Neo4j test harness 3.5 and 4.0 as well as Testcontainers Neo4j.
|
||||
We provide different examples for 3.5 and 4.0 as the test harness changed between those versions.
|
||||
For your convenience we provide three possible scenarios, Neo4j test harness 3.5 and 4.x/5.x as well as Testcontainers Neo4j.
|
||||
We provide different examples for 3.5 and 4.x/5.x as the test harness changed between those versions.
|
||||
Also, 4.0 requires JDK 11.
|
||||
|
||||
[[dataneo4jtest-harness35]]
|
||||
@@ -179,7 +179,7 @@ application properties. We overwrite the corresponding Neo4j settings.
|
||||
<.> Shutdown Neo4j after all tests.
|
||||
|
||||
[[dataneo4jtest-harness40]]
|
||||
=== `@DataNeo4jTest` with Neo4j test harness 4.x
|
||||
=== `@DataNeo4jTest` with Neo4j test harness 4.x/5.x
|
||||
|
||||
You need the following dependencies to run <<dataneo4jtest-harness40-example>>:
|
||||
|
||||
@@ -200,12 +200,12 @@ You need the following dependencies to run <<dataneo4jtest-harness40-example>>:
|
||||
</dependency>
|
||||
----
|
||||
|
||||
The dependencies for the enterprise version of Neo4j 4.x are available under the `com.neo4j.test:neo4j-harness-enterprise` and
|
||||
The dependencies for the enterprise version of Neo4j 4.x/5.x are available under the `com.neo4j.test:neo4j-harness-enterprise` and
|
||||
an appropriate repository configuration.
|
||||
|
||||
[[dataneo4jtest-harness40-example]]
|
||||
[source,java]
|
||||
.Using Neo4j 4.x test harness
|
||||
.Using Neo4j 4.x/5.x test harness
|
||||
----
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user