diff --git a/modules/ROOT/pages/extending-neo4j/procedures.adoc b/modules/ROOT/pages/extending-neo4j/procedures.adoc index 8476dc5..12e1f06 100644 --- a/modules/ROOT/pages/extending-neo4j/procedures.adoc +++ b/modules/ROOT/pages/extending-neo4j/procedures.adoc @@ -51,7 +51,7 @@ The test dependencies include _Neo4j Harness_ and _JUnit_. These can be used to write integration tests for procedures. The tests should start a Neo4j instance, load the procedure, and execute queries against it. -.An example for testing a procedure that returns relationship types found in the graph. +.An example using JUnit 5 for testing a procedure that returns relationship types found in the graph. [source, java] ---- package example; @@ -126,6 +126,11 @@ public class GetRelationshipTypesTests { } ---- +[NOTE] +==== +The previous example uses JUnit 5, which requires the use of `org.neo4j.harness.junit.extension.Neo4jExtension`. +If you want to use JUnit 4 with Neo4j 4.x or 5, use `org.neo4j.harness.junit.rule.Neo4jRule` instead. +==== == Define a procedure