Example usage for org.eclipse.jgit.lib ObjectId name

List of usage examples for org.eclipse.jgit.lib ObjectId name

Introduction

In this page you can find the example usage for org.eclipse.jgit.lib ObjectId name.

Prototype

public final String name() 

Source Link

Document

name.

Usage

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario5WithDefaultsTest.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-1"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario5WithDefaultsTest.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("1.0.0-1"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario6WithDefaultsTest.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("2.0.0"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario6WithDefaultsTest.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("2.0.0-1"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario6WithDefaultsTest.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-2"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario6WithDefaultsTest.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-3"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario8WithDefaultsTest.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("1.1.0-0"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.defaults.Scenario8WithDefaultsTest.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("1.1.0-1"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.inc.Scenario1AutoIncTest.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.0.1-1"));
}

From source file:fr.brouillard.oss.jgitver.strategy.configurable.inc.Scenario1AutoIncTest.java

License:Apache License

@Test
public void version_of_E_commit() {
    ObjectId cCommit = scenario.getCommits().get("E");

    // checkout the commit in scenario
    unchecked(() -> git.checkout().setName(cCommit.name()).call());
    assertThat(versionCalculator.getVersion(), is("2.0.1-1"));
}