Skip to content

Commit 71638cd

Browse files
committed
Fix neo4j docs
1 parent 99791ff commit 71638cd

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

docs/modules/databases/neo4j.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,12 @@ the Testcontainers integration supports also newer 5.x images of Neo4j.
99

1010
## Usage example
1111

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.
13-
You can either use call `getBoltUrl()` or `getHttpUrl()` on the Neo4j container.
14-
`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.
15-
On the JVM you would most likely use the [Java driver](https://github.com/neo4j/neo4j-java-driver).
16-
17-
The following example uses the JUnit 5 extension `@Testcontainers` and demonstrates both the usage of the Java Driver and the REST endpoint:
12+
You can start a Neo4j container instance from any Java application by using:
1813

1914
<!--codeinclude-->
20-
[JUnit 5 example](../../../examples/neo4j-container/src/test/java/org/testcontainers/containers/Neo4jExampleTest.java) inside_block:junitExample
15+
[Neo4j container](../../../modules/neo4j/src/test/java/org/testcontainers/neo4j/Neo4jContainerTest.java) inside_block:container
2116
<!--/codeinclude-->
2217

23-
You are not limited to Unit tests, and you can use an instance of the Neo4j Testcontainers in vanilla Java code as well.
24-
2518
## Additional features
2619

2720
### Custom password

0 commit comments

Comments
 (0)