I'm using embedded Neo4j for JUnit tests with the following rule configuration:
@Rule
public Neo4jRule neo4jRule = new Neo4jRule()
.withConfig("dbms.connector.1.enabled", "true")
.withConfig("dbms.connector.1.listen_address", "localhost:4710")
.withConfig("dbms.connector.1.type", "HTTP")
.withConfig("dbms.connector.bolt.enabled", "true")
.withConfig("dbms.connector.bolt.listen_address", ":4711")
.withConfig("apoc.autoIndex.enabled", "true")
.withConfig("ShellSettings.remote_shell_enabled", "true")
.withConfig("ShellSettings.remote_shell_port", "5555")
.withProcedure(apoc.index.FulltextIndex.class)
.withProcedure(apoc.index.FreeTextSearch.class)
.withProcedure(apoc.cypher.Cypher.class);
Now I would like to connect via cypher-shell during debugging (breakpoint set) in order to take a look what is actually in the test database at some point. Unfortunately, neither cypher-shell -a localhost:4711
nor neo4j-shell -port 5555
get the connection. The first one doesn't return (remains pending), the second one returns Connection refused
. What am I missing? Any idea on how to get a connection?