use of org.neo4j.commandline.dbms.LoadCommand in project neo4j by neo4j.
the class AdminCommandsIT method shouldExpandCommands.
@Test
void shouldExpandCommands() throws Exception {
assertSuccess(new SetInitialPasswordCommand(context), "--expand-commands", "pass");
assertSuccess(new SetDefaultAdminCommand(context), "--expand-commands", "admin");
assertSuccess(new StoreInfoCommand(context), "--expand-commands", "path");
assertSuccess(new CheckConsistencyCommand(context), "--expand-commands", "--database", "neo4j");
assertSuccess(new DiagnosticsReportCommand(context), "--expand-commands");
assertSuccess(new LoadCommand(context, new Loader()), "--expand-commands", "--from", "test");
assertSuccess(new MemoryRecommendationsCommand(context), "--expand-commands");
assertSuccess(new DumpCommand(context, new Dumper(context.err())), "--expand-commands", "--to", "test");
}
use of org.neo4j.commandline.dbms.LoadCommand in project neo4j by neo4j.
the class AdminCommandsIT method shouldNotExpandCommands.
@Test
void shouldNotExpandCommands() {
assertExpansionError(new SetInitialPasswordCommand(context), "pass");
assertExpansionError(new SetDefaultAdminCommand(context), "user");
assertExpansionError(new StoreInfoCommand(context), "path");
assertExpansionError(new CheckConsistencyCommand(context), "--database", "neo4j");
assertExpansionError(new DiagnosticsReportCommand(context));
assertExpansionError(new LoadCommand(context, new Loader()), "--from", "test");
assertExpansionError(new MemoryRecommendationsCommand(context));
assertExpansionError(new ImportCommand(context), "--nodes=" + testDirectory.createFile("foo.csv").toAbsolutePath());
assertExpansionError(new DumpCommand(context, new Dumper(context.err())), "--to", "test");
}
Aggregations