List of usage examples for org.eclipse.jgit.lib ObjectId name
public final String name()
name.
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario2WithDefaultsTest.java
License:Apache License
@Test public void version_of_C_commit() { ObjectId cCommit = scenario.getCommits().get("C"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(cCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("1.1.0-1")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario3WithDefaultsTest.java
License:Apache License
@Test public void version_of_B_commit() { ObjectId bCommit = scenario.getCommits().get("B"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(bCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("1.0.0")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario3WithDefaultsTest.java
License:Apache License
@Test public void version_of_C_commit() { ObjectId cCommit = scenario.getCommits().get("C"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(cCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("1.1.0-SNAPSHOT")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario3WithDefaultsTest.java
License:Apache License
@Test public void version_of_D_commit() { ObjectId dCommit = scenario.getCommits().get("D"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(dCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("2.0.0")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario3WithDefaultsTest.java
License:Apache License
@Test public void version_of_E_commit() { ObjectId eCommit = scenario.getCommits().get("E"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(eCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("3.0.0-SNAPSHOT")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario3WithDefaultsTest.java
License:Apache License
@Test public void version_of_F_commit() { ObjectId fCommit = scenario.getCommits().get("F"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(fCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("3.0.0-SNAPSHOT")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario4WithDefaultsTest.java
License:Apache License
@Test public void version_of_E_commit() { ObjectId eCommit = scenario.getCommits().get("E"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(eCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("2.0.0-1")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario4WithDefaultsTest.java
License:Apache License
@Test public void version_of_F_commit() { ObjectId fCommit = scenario.getCommits().get("F"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(fCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("1.0.0-2")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario4WithDefaultsTest.java
License:Apache License
@Test public void version_of_G_commit() { ObjectId gCommit = scenario.getCommits().get("G"); // checkout the commit in scenario unchecked(() -> git.checkout().setName(gCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("1.0.0-3")); }
From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario5WithDefaultsTest.java
License:Apache License
@Test public void version_of_A_commit() { ObjectId firstCommit = scenario.getCommits().get("A"); // checkout the first commit in scenario unchecked(() -> git.checkout().setName(firstCommit.name()).call()); assertThat(versionCalculator.getVersion(), is("1.0.0")); }