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.
This commit is contained in:
Reference in New Issue
Block a user