use of org.neo4j.shell.ShellParameterMap in project neo4j by neo4j.
the class CypherShellFailureIntegrationTest method setUp.
@Before
public void setUp() {
linePrinter.clear();
shell = new CypherShell(linePrinter, new PrettyConfig(Format.VERBOSE, true, 1000), false, new ShellParameterMap());
}
use of org.neo4j.shell.ShellParameterMap in project neo4j by neo4j.
the class CypherShellMultiDatabaseIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
linePrinter.clear();
shell = new CypherShell(linePrinter, new PrettyConfig(Format.PLAIN, true, 1000), false, new ShellParameterMap());
useCommand = new Use(shell);
beginCommand = new Begin(shell);
rollbackCommand = new Rollback(shell);
shell.connect(new ConnectionConfig("bolt", "localhost", 7687, "neo4j", "neo", Encryption.DEFAULT, ABSENT_DB_NAME));
// Multiple databases are only available from 4.0
assumeTrue(majorVersion(shell.getServerVersion()) >= 4);
}
use of org.neo4j.shell.ShellParameterMap in project neo4j by neo4j.
the class CypherShellProtocolIntegrationTest method shouldConnectWithBoltProtocol.
@Test
public void shouldConnectWithBoltProtocol() throws Exception {
CypherShell shell = new CypherShell(new StringLinePrinter(), new PrettyConfig(Format.PLAIN, true, 1000), false, new ShellParameterMap());
shell.connect(new ConnectionConfig("bolt", "localhost", 7687, "neo4j", "neo", Encryption.DEFAULT, ABSENT_DB_NAME));
assertTrue(shell.isConnected());
}
use of org.neo4j.shell.ShellParameterMap in project neo4j by neo4j.
the class CypherShellProtocolIntegrationTest method shouldConnectWithNeo4jProtocol.
@Test
public void shouldConnectWithNeo4jProtocol() throws Exception {
CypherShell shell = new CypherShell(new StringLinePrinter(), new PrettyConfig(Format.PLAIN, true, 1000), false, new ShellParameterMap());
// This should work even on older databases without the neo4j protocol, by falling back to bolt
shell.connect(new ConnectionConfig("neo4j", "localhost", 7687, "neo4j", "neo", Encryption.DEFAULT, ABSENT_DB_NAME));
assertTrue(shell.isConnected());
}
use of org.neo4j.shell.ShellParameterMap in project neo4j by neo4j.
the class CypherShellVerboseIntegrationTest method setUp.
@Before
public void setUp() throws Exception {
linePrinter.clear();
shell = new CypherShell(linePrinter, new PrettyConfig(Format.VERBOSE, true, 1000), false, new ShellParameterMap());
connect("neo");
}
Aggregations