Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.Tag.tag()


    t.setObjId(emptyId);
    t.setType("blob");
    t.setTag("test020");
    t.setAuthor(new PersonIdent(author, 1154236443000L, -4 * 60));
    t.setMessage("test020 tagged\n");
    t.tag();
    assertEquals("6759556b09fbb4fd8ae5e315134481cc25d46954", t.getTagId().name());

    Tag mapTag = db.mapTag("test020");
    assertEquals("blob", mapTag.getType());
    assertEquals("test020 tagged\n", mapTag.getMessage());
View Full Code Here


  public void test020b_createBlobPlainTag() throws IOException {
    test020_createBlobTag();
    Tag t = new Tag(db);
    t.setTag("test020b");
    t.setObjId(ObjectId.fromString("e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"));
    t.tag();

    Tag mapTag = db.mapTag("test020b");
    assertEquals("e69de29bb2d1d6434b8b29ae775ad8c2e48c5391", mapTag.getObjId().name());

    // We do not repeat the plain tag test for other object types
View Full Code Here

    t.setObjId(almostEmptyTreeId);
    t.setType("tree");
    t.setTag("test021");
    t.setAuthor(new PersonIdent(author, 1154236443000L, -4 * 60));
    t.setMessage("test021 tagged\n");
    t.tag();
    assertEquals("b0517bc8dbe2096b419d42424cd7030733f4abe5", t.getTagId().name());

    Tag mapTag = db.mapTag("test021");
    assertEquals("tree", mapTag.getType());
    assertEquals("test021 tagged\n", mapTag.getMessage());
View Full Code Here

    t.setObjId(almostEmptyCommitId);
    t.setType("commit");
    t.setTag("test022");
    t.setAuthor(new PersonIdent(author, 1154236443000L, -4 * 60));
    t.setMessage("test022 tagged\n");
    t.tag();
    assertEquals("0ce2ebdb36076ef0b38adbe077a07d43b43e3807", t.getTagId().name());

    Tag mapTag = db.mapTag("test022");
    assertEquals("commit", mapTag.getType());
    assertEquals("test022 tagged\n", mapTag.getMessage());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.