@When("^I run the command \"([^\"]*)\" on a new GeoPackage file$") public void I_run_the_command_on_a_new_GeoPackage_file(String commandSpec) throws Throwable { GeoPackageTestSupport support = new GeoPackageTestSupport(); commandSpec += " --database "; commandSpec += support.newFile().getPath(); String[] args = commandSpec.split(" "); localRepo.runCommand(args); }
@When("^I run the command \"([^\"]*)\" on a new GeoPackage file$") public void I_run_the_command_on_a_new_GeoPackage_file(String commandSpec) throws Throwable { GeoPackageTestSupport support = new GeoPackageTestSupport(); commandSpec += " --database "; commandSpec += support.newFile().getPath(); String[] args = commandSpec.split(" "); localRepo.runCommand(args); }
@When("^I run the command \"([^\"]*)\" on an existing GeoPackage file$") public void I_run_the_command_on_an_existing_GeoPackage_file(String commandSpec) throws Throwable { GeoPackageTestSupport support = new GeoPackageTestSupport(); commandSpec += " --database "; commandSpec += support.createDefaultTestData().getPath(); String[] args = commandSpec.split(" "); localRepo.runCommand(args); }
@When("^I run the command \"([^\"]*)\" on an existing GeoPackage file$") public void I_run_the_command_on_an_existing_GeoPackage_file(String commandSpec) throws Throwable { GeoPackageTestSupport support = new GeoPackageTestSupport(); commandSpec += " --database "; commandSpec += support.createDefaultTestData().getPath(); String[] args = commandSpec.split(" "); localRepo.runCommand(args); }
@Before public void setUp() throws Exception { consoleReader = spy(new Console().disableAnsi()); cli = spy(new GeogigCLI(consoleReader)); support = new GeoPackageTestSupport(); setUpGeogig(cli); }
@Before public void setUp() throws Exception { consoleReader = spy(new Console().disableAnsi()); cli = spy(new GeogigCLI(consoleReader)); support = new GeoPackageTestSupport(); setUpGeogig(cli); }
@Before public void setUpInternal() throws Exception { Console consoleReader = new Console().disableAnsi(); cli = spy(new GeogigCLI(consoleReader)); cli.setGeogig(geogig); support = new GeoPackageTestSupport(); }
@Before public void setUpInternal() throws Exception { Console consoleReader = new Console().disableAnsi(); cli = spy(new GeogigCLI(consoleReader)); cli.setGeogig(geogig); support = new GeoPackageTestSupport(); }
@Override public void setUpInternal() throws Exception { Console consoleReader = new Console().disableAnsi(); cli = new GeogigCLI(consoleReader); cli.setGeogig(geogig); support = new GeoPackageTestSupport(); }
@Override public void setUpInternal() throws Exception { Console consoleReader = new Console().disableAnsi(); cli = new GeogigCLI(consoleReader); cli.setGeogig(geogig); support = new GeoPackageTestSupport(); }
private void setupCLI() { Console consoleReader = new Console().disableAnsi(); cli = new GeogigCLI(consoleReader); cli.setGeogig(geogig); support = new GeoPackageTestSupport(); }
private void setupCLI() { Console consoleReader = new Console().disableAnsi(); cli = new GeogigCLI(consoleReader); cli.setGeogig(geogig); support = new GeoPackageTestSupport(); }
localRepo.runCommand(true, "commit -m initial"); GeoPackageTestSupport support = new GeoPackageTestSupport();
localRepo.runCommand(true, "commit -m initial"); GeoPackageTestSupport support = new GeoPackageTestSupport();
localRepo.runCommand(true, "commit -m initial"); GeoPackageTestSupport support = new GeoPackageTestSupport();
localRepo.runCommand(true, "commit -m initial"); GeoPackageTestSupport support = new GeoPackageTestSupport();
@Override public void setUpInternal() throws Exception { Console consoleReader = new Console().disableAnsi(); cli = new GeogigCLI(consoleReader); cli.setGeogig(geogig); // Add points insertAndAdd(points1); insertAndAdd(points2); insertAndAdd(points3); geogig.command(CommitOp.class).call(); // Add lines insertAndAdd(lines1); insertAndAdd(lines2); insertAndAdd(lines3); geogig.command(CommitOp.class).call(); support = new GeoPackageTestSupport(); }
@Override public void setUpInternal() throws Exception { Console consoleReader = new Console().disableAnsi(); cli = new GeogigCLI(consoleReader); cli.setGeogig(geogig); // Add points insertAndAdd(points1); insertAndAdd(points2); insertAndAdd(points3); geogig.command(CommitOp.class).call(); // Add lines insertAndAdd(lines1); insertAndAdd(lines2); insertAndAdd(lines3); geogig.command(CommitOp.class).call(); support = new GeoPackageTestSupport(); }