Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion modules/ROOT/pages/extending-neo4j/procedures.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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

Expand Down