Skip to content

Commit 4a6ab41

Browse files
Adding information about the version of junit used in the example (#103) (#106)
* adding information about the version of junit used in the example and note with instructions for users who want to keep using a previous version * update after review * removing incorrect extra lines * adding the information that this can also be applied to neo4j 5 instead of just 4 * Update modules/ROOT/pages/extending-neo4j/procedures.adoc --------- Co-authored-by: Jessica Wright <49636617+AlexicaWright@users.noreply.github.com>
1 parent 9e50655 commit 4a6ab41

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/ROOT/pages/extending-neo4j/procedures.adoc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ The test dependencies include _Neo4j Harness_ and _JUnit_.
5151
These can be used to write integration tests for procedures.
5252
The tests should start a Neo4j instance, load the procedure, and execute queries against it.
5353

54-
.An example for testing a procedure that returns relationship types found in the graph.
54+
.An example using JUnit 5 for testing a procedure that returns relationship types found in the graph.
5555
[source, java]
5656
----
5757
package example;
@@ -126,6 +126,11 @@ public class GetRelationshipTypesTests {
126126
}
127127
----
128128

129+
[NOTE]
130+
====
131+
The previous example uses JUnit 5, which requires the use of `org.neo4j.harness.junit.extension.Neo4jExtension`.
132+
If you want to use JUnit 4 with Neo4j 4.x or 5, use `org.neo4j.harness.junit.rule.Neo4jRule` instead.
133+
====
129134

130135
== Define a procedure
131136

0 commit comments

Comments
 (0)