You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/databases/neo4j.md
+13-6
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,12 @@
1
1
# Neo4j Module
2
2
3
-
This module helps running[Neo4j](https://neo4j.com/download/) using Testcontainers.
3
+
This module helps to run[Neo4j](https://neo4j.com/download/) using Testcontainers.
4
4
5
5
Note that it's based on the [official Docker image](https://hub.docker.com/_/neo4j/) provided by Neo4j, Inc.
6
6
7
+
Even though the latest LTS version of Neo4j 4.4 is used in the examples of this documentation,
8
+
the Testcontainers integration supports also newer 5.x images of Neo4j.
9
+
7
10
## Usage example
8
11
9
12
Declare your Testcontainers as a `@ClassRule` or `@Rule` in a JUnit 4 test or as static or member attribute of a JUnit 5 test annotated with `@Container` as you would with other Testcontainers.
@@ -17,7 +20,7 @@ The following example uses the JUnit 5 extension `@Testcontainers` and demonstra
This creates a Testcontainers based on the Docker image build with the Enterprise version of Neo4j.
108
+
This creates a Testcontainers based on the Docker image build with the Enterprise version of Neo4j 4.4.
106
109
The call to `withEnterpriseEdition` adds the required environment variable that you accepted the terms and condition of the enterprise version.
107
-
You accept those by adding a file named `container-license-acceptance.txt` to the root of your classpath containing the text `neo4j:3.5.0-enterprise` in one line.
110
+
You accept those by adding a file named `container-license-acceptance.txt` to the root of your classpath containing the text `neo4j:4.4-enterprise` in one line.
111
+
112
+
If you are planning to run a newer Neo4j 5.x enterprise edition image, you have to manually define the proper enterprise image (e.g. `neo4j:5-enterprise`)
113
+
and set the environment variable `NEO4J_ACCEPT_LICENSE_AGREEMENT` by adding `.withEnv("NEO4J_ACCEPT_LICENSE_AGREEMENT", "yes")` to your container definition.
114
+
108
115
You'll find more information about licensing Neo4j here: [About Neo4j Licenses](https://neo4j.com/licensing/).
109
116
110
117
@@ -131,14 +138,14 @@ Add the following dependency to your `pom.xml`/`build.gradle` file:
0 commit comments