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
@@ -6,139 +6,59 @@ Note that it's based on the [official Docker image](https://hub.docker.com/_/neo
6
6
7
7
## Usage example
8
8
9
-
Declare your Testcontainer 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.
10
-
You can either use call `getHttpUrl()` or `getBoltUrl()` on the Neo4j container.
11
-
`getHttpUrl()` gives you the HTTP-address of the transactional HTTP endpoint while `getBoltUrl()` is meant to be used with one of the [official Bolt drivers](https://neo4j.com/developer/language-guides/).
9
+
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.
10
+
You can either use call `getBoltUrl()` or `getHttpUrl()` on the Neo4j container.
11
+
`getBoltUrl()` is meant to be used with one of the [official Bolt drivers](https://neo4j.com/developer/language-guides/) while `getHttpUrl()` gives you the HTTP-address of the transactional HTTP endpoint.
12
12
On the JVM you would most likely use the [Java driver](https://github.com/neo4j/neo4j-java-driver).
13
13
14
14
The following example uses the JUnit 5 extension `@Testcontainers` and demonstrates both the usage of the Java Driver and the REST endpoint:
15
15
16
-
=== "JUnit 5 example"
17
-
```java
18
-
@Testcontainers
19
-
public class ExampleTest {
20
-
21
-
@Container
22
-
private static Neo4jContainer neo4jContainer = new Neo4jContainer()
This creates a Testcontainer based on the Docker image build with the Enterprise version of Neo4j.
74
+
This creates a Testcontainers based on the Docker image build with the Enterprise version of Neo4j.
160
75
The call to `withEnterpriseEdition` adds the required environment variable that you accepted the terms and condition of the enterprise version.
161
76
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.
162
77
You'll find more information about licensing Neo4j here: [About Neo4j Licenses](https://neo4j.com/licensing/).
@@ -181,22 +96,18 @@ Add the following dependency to your `pom.xml`/`build.gradle` file:
181
96
```
182
97
183
98
!!! hint
184
-
Add the Neo4j Java driver if you plan to access the Testcontainer via Bolt:
99
+
Add the Neo4j Java driver if you plan to access the Testcontainers via Bolt:
0 commit comments