Search in sources :

Example 1 with ImportCommand

use of org.neo4j.importer.ImportCommand 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");
}
Also used : ImportCommand(org.neo4j.importer.ImportCommand) DumpCommand(org.neo4j.commandline.dbms.DumpCommand) DiagnosticsReportCommand(org.neo4j.commandline.dbms.DiagnosticsReportCommand) SetDefaultAdminCommand(org.neo4j.commandline.admin.security.SetDefaultAdminCommand) StoreInfoCommand(org.neo4j.commandline.dbms.StoreInfoCommand) Loader(org.neo4j.dbms.archive.Loader) MemoryRecommendationsCommand(org.neo4j.commandline.dbms.MemoryRecommendationsCommand) LoadCommand(org.neo4j.commandline.dbms.LoadCommand) SetInitialPasswordCommand(org.neo4j.commandline.admin.security.SetInitialPasswordCommand) CheckConsistencyCommand(org.neo4j.consistency.CheckConsistencyCommand) Dumper(org.neo4j.dbms.archive.Dumper) Test(org.junit.jupiter.api.Test)

Aggregations

Test (org.junit.jupiter.api.Test)1 SetDefaultAdminCommand (org.neo4j.commandline.admin.security.SetDefaultAdminCommand)1 SetInitialPasswordCommand (org.neo4j.commandline.admin.security.SetInitialPasswordCommand)1 DiagnosticsReportCommand (org.neo4j.commandline.dbms.DiagnosticsReportCommand)1 DumpCommand (org.neo4j.commandline.dbms.DumpCommand)1 LoadCommand (org.neo4j.commandline.dbms.LoadCommand)1 MemoryRecommendationsCommand (org.neo4j.commandline.dbms.MemoryRecommendationsCommand)1 StoreInfoCommand (org.neo4j.commandline.dbms.StoreInfoCommand)1 CheckConsistencyCommand (org.neo4j.consistency.CheckConsistencyCommand)1 Dumper (org.neo4j.dbms.archive.Dumper)1 Loader (org.neo4j.dbms.archive.Loader)1 ImportCommand (org.neo4j.importer.ImportCommand)1