@Override protected DataStore getDataStore() { return support.getDataStore(commonArgs); }
private DataStore store(File result) throws InterruptedException, ExecutionException { assertNotNull(result); return support.createDataStore(result); }
private DataStore store(File result) throws InterruptedException, ExecutionException { assertNotNull(result); return support.createDataStore(result); }
/** * @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 testDescribeHelp() throws Exception { GeopkgDescribe describeCommand = new GeopkgDescribe(); describeCommand.commonArgs.database = support.newFile().getAbsolutePath(); describeCommand.help = true; describeCommand.run(cli); }
@Test public void testList() throws Exception { GeopkgList listCommand = new GeopkgList(); listCommand.commonArgs.database = support.createDefaultTestData().getAbsolutePath(); listCommand.support.dataStoreFactory = TestHelper.createTestFactory(); listCommand.run(cli); }
@Test public void testListHelp() throws Exception { GeopkgList listCommand = new GeopkgList(); listCommand.help = true; listCommand.run(cli); }
@Override public void setUpInternal() throws Exception { setupCLI(); }
public File createEmptyDatabase() throws Exception { File file = newFile(); GeoPackage geoPackage = new GeoPackage(file); try { geoPackage.init(); } finally { geoPackage.close(); } return file; }
/** * @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 testDescribeHelp() throws Exception { GeopkgDescribe describeCommand = new GeopkgDescribe(); describeCommand.commonArgs.database = support.newFile().getAbsolutePath(); describeCommand.help = true; describeCommand.run(cli); }
private DataStore store(File result) throws InterruptedException, ExecutionException { assertNotNull(result); return support.createDataStore(result); }
private DataStore store(File result) throws InterruptedException, ExecutionException { assertNotNull(result); return support.createDataStore(result); }
@Override protected DataStore getDataStore() { return support.getDataStore(commonArgs); }
@Override public void setUpInternal() throws Exception { setupCLI(); }
/** * @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; } }
@Override protected DataStore getDataStore() { return support.getDataStore(commonArgs); }
@Override protected DataStore getDataStore() { return support.getDataStore(commonArgs); }
@Override protected DataStore getDataStore() { return support.getDataStore(commonArgs); }
@Override protected DataStore getDataStore() { return support.getDataStore(commonArgs); }