From 4d3ee252f62248045d55acae230686b0699dfa1f Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Thu, 10 Oct 2019 22:53:29 +0200 Subject: [PATCH] Add DataNeo4jTest to simplify test for Neo4j. This adds a new @DataNeo4jTest that provides additional auto configuration. When the Neo4j test harness (https://medium.com/neo4j/testing-your-neo4j-based-java-application-34bef487cc3c) is on the class-path and no other Driver bean is provided, it creates an embedded test server. An already existing test server is recognised, so that user can run their own enterprise test harness if they want. If test harness isn't on the class-path or excluded from the slice, the slice falls back to using an existing driver bean respectively delegates to the drivers auto configuration, thus recognising org.neo4j.driver.uri and related properties. We can upgrade the optional dependencies for the test harness in a later step. --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index 5fdcb8a93..802ac87f1 100644 --- a/pom.xml +++ b/pom.xml @@ -75,6 +75,7 @@ spring-data-neo4j-rx spring-data-neo4j-rx-spring-boot-starter-parent examples/reactive-web + examples/imperative-web examples/mapping