public void insertAndAddFeatures() throws Exception { insertAndAdd(points1); insertAndAdd(points2); insertAndAdd(points3); insertAndAdd(lines1); insertAndAdd(lines2); insertAndAdd(lines3); }
public void insertAndAddFeatures() throws Exception { insertAndAdd(points1); insertAndAdd(points2); insertAndAdd(points3); insertAndAdd(lines1); insertAndAdd(lines2); insertAndAdd(lines3); }
public void insertAndAddFeatures() throws Exception { insertAndAdd(points1); insertAndAdd(points2); insertAndAdd(points3); insertAndAdd(lines1); insertAndAdd(lines2); insertAndAdd(lines3); }
@Given("^I have staged \"([^\"]*)\"$") public void I_have_staged(String feature) throws Throwable { if (feature.equals("points1")) { localRepo.insertAndAdd(points1); } else if (feature.equals("points2")) { localRepo.insertAndAdd(points2); } else if (feature.equals("points3")) { localRepo.insertAndAdd(points3); } else if (feature.equals("points1_modified")) { localRepo.insertAndAdd(points1_modified); } else if (feature.equals("lines1")) { localRepo.insertAndAdd(lines1); } else if (feature.equals("lines2")) { localRepo.insertAndAdd(lines2); } else if (feature.equals("lines3")) { localRepo.insertAndAdd(lines3); } else { throw new Exception("Unknown Feature"); } }
@Given("^I have staged \"([^\"]*)\"$") public void I_have_staged(String feature) throws Throwable { if (feature.equals("points1")) { localRepo.insertAndAdd(points1); } else if (feature.equals("points2")) { localRepo.insertAndAdd(points2); } else if (feature.equals("points3")) { localRepo.insertAndAdd(points3); } else if (feature.equals("points1_modified")) { localRepo.insertAndAdd(points1_modified); } else if (feature.equals("lines1")) { localRepo.insertAndAdd(lines1); } else if (feature.equals("lines2")) { localRepo.insertAndAdd(lines2); } else if (feature.equals("lines3")) { localRepo.insertAndAdd(lines3); } else { throw new Exception("Unknown Feature"); } }
@Given("^I have staged \"([^\"]*)\"$") public void I_have_staged(String feature) throws Throwable { if (feature.equals("points1")) { localRepo.insertAndAdd(points1); } else if (feature.equals("points2")) { localRepo.insertAndAdd(points2); } else if (feature.equals("points3")) { localRepo.insertAndAdd(points3); } else if (feature.equals("points1_modified")) { localRepo.insertAndAdd(points1_modified); } else if (feature.equals("lines1")) { localRepo.insertAndAdd(lines1); } else if (feature.equals("lines2")) { localRepo.insertAndAdd(lines2); } else if (feature.equals("lines3")) { localRepo.insertAndAdd(lines3); } else { throw new Exception("Unknown Feature"); } }
@Given("^I have several feature types in a path$") public void I_have_several_feature_types_in_a_path() throws Throwable { localRepo.insertAndAdd(points2); localRepo.runCommand(true, "commit -m Commit1"); localRepo.insertAndAdd(points1_FTmodified); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(points3); localRepo.insertAndAdd(lines1); localRepo.runCommand(true, "commit -m Commit3"); localRepo.insertAndAdd(lines2, lines3); localRepo.runCommand(true, "commit -m Commit4"); }
@Given("^I have several feature types in a path$") public void I_have_several_feature_types_in_a_path() throws Throwable { localRepo.insertAndAdd(points2); localRepo.runCommand(true, "commit -m Commit1"); localRepo.insertAndAdd(points1_FTmodified); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(points3); localRepo.insertAndAdd(lines1); localRepo.runCommand(true, "commit -m Commit3"); localRepo.insertAndAdd(lines2, lines3); localRepo.runCommand(true, "commit -m Commit4"); }
@Given("I modify and add a feature") public void I_modify_and_add_a_feature() throws Throwable { localRepo.insertAndAdd(points1_modified); }
@Given("I modify and add a feature") public void I_modify_and_add_a_feature() throws Throwable { localRepo.insertAndAdd(points1_modified); }
@Given("I modify and add a feature") public void I_modify_and_add_a_feature() throws Throwable { localRepo.insertAndAdd(points1_modified); }
@Given("^I have several commits$") public void I_have_several_commits() throws Throwable { localRepo.insertAndAdd(points1, points2); localRepo.runCommand(true, "commit -m Commit1"); localRepo.insertAndAdd(points3, lines1); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(lines2, lines3); localRepo.runCommand(true, "commit -m Commit3"); localRepo.insertAndAdd(points1_modified); localRepo.runCommand(true, "commit -m Commit4"); }
@Given("^I have several commits$") public void I_have_several_commits() throws Throwable { localRepo.insertAndAdd(points1, points2); localRepo.runCommand(true, "commit -m Commit1"); localRepo.insertAndAdd(points3, lines1); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(lines2, lines3); localRepo.runCommand(true, "commit -m Commit3"); localRepo.insertAndAdd(points1_modified); localRepo.runCommand(true, "commit -m Commit4"); }
@Given("^I have several commits$") public void I_have_several_commits() throws Throwable { localRepo.insertAndAdd(points1, points2); localRepo.runCommand(true, "commit -m Commit1"); localRepo.insertAndAdd(points3, lines1); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(lines2, lines3); localRepo.runCommand(true, "commit -m Commit3"); localRepo.insertAndAdd(points1_modified); localRepo.runCommand(true, "commit -m Commit4"); }
@Given("^I have several branches") public void I_have_several_branches() throws Throwable { localRepo.insertAndAdd(points1); localRepo.runCommand(true, "commit -m Commit1"); localRepo.runCommand(true, "branch -c branch1"); localRepo.insertAndAdd(points2); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(points3); localRepo.runCommand(true, "commit -m Commit3"); localRepo.runCommand(true, "branch -c branch2"); localRepo.insertAndAdd(lines1); localRepo.runCommand(true, "commit -m Commit4"); localRepo.runCommand(true, "checkout master"); localRepo.insertAndAdd(lines2); localRepo.runCommand(true, "commit -m Commit5"); }
@Given("^I have several branches") public void I_have_several_branches() throws Throwable { localRepo.insertAndAdd(points1); localRepo.runCommand(true, "commit -m Commit1"); localRepo.runCommand(true, "branch -c branch1"); localRepo.insertAndAdd(points2); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(points3); localRepo.runCommand(true, "commit -m Commit3"); localRepo.runCommand(true, "branch -c branch2"); localRepo.insertAndAdd(lines1); localRepo.runCommand(true, "commit -m Commit4"); localRepo.runCommand(true, "checkout master"); localRepo.insertAndAdd(lines2); localRepo.runCommand(true, "commit -m Commit5"); }
@Given("^I have several branches") public void I_have_several_branches() throws Throwable { localRepo.insertAndAdd(points1); localRepo.runCommand(true, "commit -m Commit1"); localRepo.runCommand(true, "branch -c branch1"); localRepo.insertAndAdd(points2); localRepo.runCommand(true, "commit -m Commit2"); localRepo.insertAndAdd(points3); localRepo.runCommand(true, "commit -m Commit3"); localRepo.runCommand(true, "branch -c branch2"); localRepo.insertAndAdd(lines1); localRepo.runCommand(true, "commit -m Commit4"); localRepo.runCommand(true, "checkout master"); localRepo.insertAndAdd(lines2); localRepo.runCommand(true, "commit -m Commit5"); }
@Given("^the remote repository has changes") public void the_remote_repository_has_changes() throws Throwable { CLIContext remoteRepo = contextProvider.getOrCreateRepositoryContext("remoterepo"); remoteRepo.insertAndAdd(lines3); remoteRepo.runCommand(true, "commit -m Commit10"); }
@Given("^the remote repository has changes") public void the_remote_repository_has_changes() throws Throwable { CLIContext remoteRepo = contextProvider.getOrCreateRepositoryContext("remoterepo"); remoteRepo.insertAndAdd(lines3); remoteRepo.runCommand(true, "commit -m Commit10"); }
@Given("^the remote repository has changes") public void the_remote_repository_has_changes() throws Throwable { CLIContext remoteRepo = contextProvider.getOrCreateRepositoryContext("remoterepo"); remoteRepo.insertAndAdd(lines3); remoteRepo.runCommand(true, "commit -m Commit10"); }