Class EnterpriseNeo4jRule

java.lang.Object
org.neo4j.harness.junit.rule.Neo4jRule
com.neo4j.harness.junit.rule.EnterpriseNeo4jRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class EnterpriseNeo4jRule extends Neo4jRule
Enterprise Neo4j JUnit rule. Allows easily start enterprise neo4j instance for testing purposes with various user-provided options and configurations.

By default, it will try to start neo4j with embedded web server on random ports. Therefore it is necessary for the test code to use Neo4jRule.httpURI() and then URI.resolve(String) to create the URIs to be invoked.

In case if starting embedded web server is not desirable it can be fully disabled by using Neo4jRule.withDisabledServer() configuration option.

  • Constructor Details

    • EnterpriseNeo4jRule

      public EnterpriseNeo4jRule()
    • EnterpriseNeo4jRule

      public EnterpriseNeo4jRule(Path workingDirectory)