Examples of MutableObjectId


Examples of org.eclipse.jgit.lib.MutableObjectId

    edgeObjects = edges;

    alreadyProcessed = new IntSet();
    treeCache = new ObjectIdOwnerMap<TreeWithData>();
    parser = new CanonicalTreeParser();
    idBuf = new MutableObjectId();
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

   * @return an iterator that iterates over notes of this NoteMap. Non note
   *         entries are ignored by this iterator.
   */
  public Iterator<Note> iterator() {
    try {
      return root.iterator(new MutableObjectId(), reader);
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

    this.db = db;
    this.reader = db.newObjectReader();
    this.inserter = db.newObjectInserter();
    this.noteMerger = noteMerger;
    this.nonNotesMergeStrategy = nonNotesMergeStrategy;
    this.objectIdPrefix = new MutableObjectId();
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  @Test
  public void testReadACK_NAK() throws IOException {
    final ObjectId expid = ObjectId
        .fromString("fcfcfb1fd94829c1a1704f894fc111d14770d34e");
    final MutableObjectId actid = new MutableObjectId();
    actid.fromString(expid.name());

    init("0008NAK\n");
    assertSame(PacketLineIn.AckNackResult.NAK, in.readACK(actid));
    assertEquals(expid, actid);
    assertEOF();
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  @Test
  public void testReadACK_ACK1() throws IOException {
    final ObjectId expid = ObjectId
        .fromString("fcfcfb1fd94829c1a1704f894fc111d14770d34e");
    final MutableObjectId actid = new MutableObjectId();

    init("0031ACK fcfcfb1fd94829c1a1704f894fc111d14770d34e\n");
    assertSame(PacketLineIn.AckNackResult.ACK, in.readACK(actid));
    assertEquals(expid, actid);
    assertEOF();
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  @Test
  public void testReadACK_ACKcontinue1() throws IOException {
    final ObjectId expid = ObjectId
        .fromString("fcfcfb1fd94829c1a1704f894fc111d14770d34e");
    final MutableObjectId actid = new MutableObjectId();

    init("003aACK fcfcfb1fd94829c1a1704f894fc111d14770d34e continue\n");
    assertSame(PacketLineIn.AckNackResult.ACK_CONTINUE, in.readACK(actid));
    assertEquals(expid, actid);
    assertEOF();
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  @Test
  public void testReadACK_ACKcommon1() throws IOException {
    final ObjectId expid = ObjectId
        .fromString("fcfcfb1fd94829c1a1704f894fc111d14770d34e");
    final MutableObjectId actid = new MutableObjectId();

    init("0038ACK fcfcfb1fd94829c1a1704f894fc111d14770d34e common\n");
    assertSame(PacketLineIn.AckNackResult.ACK_COMMON, in.readACK(actid));
    assertEquals(expid, actid);
    assertEOF();
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  @Test
  public void testReadACK_ACKready1() throws IOException {
    final ObjectId expid = ObjectId
        .fromString("fcfcfb1fd94829c1a1704f894fc111d14770d34e");
    final MutableObjectId actid = new MutableObjectId();

    init("0037ACK fcfcfb1fd94829c1a1704f894fc111d14770d34e ready\n");
    assertSame(PacketLineIn.AckNackResult.ACK_READY, in.readACK(actid));
    assertEquals(expid, actid);
    assertEOF();
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  @Test
  public void testReadACK_Invalid1() {
    init("HELO");
    try {
      in.readACK(new MutableObjectId());
      fail("incorrectly accepted invalid packet header");
    } catch (IOException e) {
      assertEquals("Invalid packet line header: HELO", e.getMessage());
    }
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.MutableObjectId

  @Test
  public void testReadACK_Invalid2() {
    init("0009HELO\n");
    try {
      in.readACK(new MutableObjectId());
      fail("incorrectly accepted invalid ACK/NAK");
    } catch (IOException e) {
      assertEquals("Expected ACK/NAK, got: HELO", e.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.