From 74a253de6a8c06f3227adde44fde9611f792eb52 Mon Sep 17 00:00:00 2001 From: Gerrit Meier Date: Wed, 5 Apr 2023 17:55:00 +0200 Subject: [PATCH] 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. --- src/main/asciidoc/faq/index.adoc | 2 +- src/main/asciidoc/testing/testing.adoc | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/asciidoc/faq/index.adoc b/src/main/asciidoc/faq/index.adoc index ccd4b2dd6..be48b6d34 100644 --- a/src/main/asciidoc/faq/index.adoc +++ b/src/main/asciidoc/faq/index.adoc @@ -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]] diff --git a/src/main/asciidoc/testing/testing.adoc b/src/main/asciidoc/testing/testing.adoc index 388bbd374..05c2c7689 100644 --- a/src/main/asciidoc/testing/testing.adoc +++ b/src/main/asciidoc/testing/testing.adoc @@ -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 <>: @@ -200,12 +200,12 @@ You need the following dependencies to run <>: ---- -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;