@Test public void testPullFileNotExist() throws Exception { GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = "file://nonexistent.gpkg"; exception.expect(IllegalArgumentException.class); exception.expectMessage("Database file not found."); pullCommand.run(cli); }
/** * @return the JCommander parser for this extension * @see JCommander */ @Override public JCommander getCommandParser() { JCommander commander = new JCommander(); commander.setProgramName("geogig geopkg"); commander.addCommand("import", new GeopkgImport()); commander.addCommand("list", new GeopkgList()); commander.addCommand("describe", new GeopkgDescribe()); commander.addCommand("export", new GeopkgExport()); commander.addCommand("pull", new GeopkgPull()); return commander; } }
/** * @return the JCommander parser for this extension * @see JCommander */ @Override public JCommander getCommandParser() { JCommander commander = new JCommander(); commander.setProgramName("geogig geopkg"); commander.addCommand("import", new GeopkgImport()); commander.addCommand("list", new GeopkgList()); commander.addCommand("describe", new GeopkgDescribe()); commander.addCommand("export", new GeopkgExport()); commander.addCommand("pull", new GeopkgPull()); return commander; } }
@Test public void testPullFileNotExist() throws Exception { GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = "file://nonexistent.gpkg"; exception.expect(IllegalArgumentException.class); exception.expectMessage("Database file not found."); pullCommand.run(cli); }
/** * @return the JCommander parser for this extension * @see JCommander */ @Override public JCommander getCommandParser() { JCommander commander = new JCommander(); commander.setProgramName("geogig geopkg"); commander.addCommand("import", new GeopkgImport()); commander.addCommand("list", new GeopkgList()); commander.addCommand("describe", new GeopkgDescribe()); commander.addCommand("export", new GeopkgExport()); commander.addCommand("pull", new GeopkgPull()); return commander; } }
GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = geoPkgFileName; pullCommand.commitMessage = "Imported from geopackage."; pullCommand.table = "Points"; pullCommand.run(cli);
GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = geoPkgFileName; pullCommand.commitMessage = "Imported from geopackage."; pullCommand.table = "Points"; pullCommand.run(cli);
GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = geoPkgFileName; pullCommand.commitMessage = "Imported from geopackage."; pullCommand.table = "Points"; pullCommand.run(cli);
GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = geoPkgFileName; pullCommand.commitMessage = "Imported from geopackage."; pullCommand.table = "Points"; pullCommand.run(cli);
GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = geoPkgFileName; pullCommand.commitMessage = "Imported from geopackage."; exception.expect(CommandFailedException.class); exception.expectMessage("CONFLICT: Merge conflict"); pullCommand.run(cli);
GeopkgPull pullCommand = new GeopkgPull(); pullCommand.commonArgs.database = geoPkgFileName; pullCommand.commitMessage = "Imported from geopackage."; exception.expect(CommandFailedException.class); exception.expectMessage("CONFLICT: Merge conflict"); pullCommand.run(cli);