Package org.eclipse.jgit.storage.file

Examples of org.eclipse.jgit.storage.file.FileRepository


   *
   * @throws Exception
   */
  @Test(expected = IllegalArgumentException.class)
  public void getBaseWithEmptyIds() throws Exception {
    CommitUtils.getBase(new FileRepository(testRepo), new ObjectId[0]);
  }
View Full Code Here


   *
   * @throws Exception
   */
  @Test(expected = IllegalArgumentException.class)
  public void getBaseWithNullRevisions() throws Exception {
    CommitUtils.getBase(new FileRepository(testRepo), (String[]) null);
  }
View Full Code Here

   *
   * @throws Exception
   */
  @Test(expected = IllegalArgumentException.class)
  public void getBaseWithEmptyRevisions() throws Exception {
    CommitUtils.getBase(new FileRepository(testRepo), new String[0]);
  }
View Full Code Here

   *
   * @throws Exception
   */
  @Test(expected = GitException.class)
  public void getBaseWithUnknownRevision() throws Exception {
    CommitUtils.getBase(new FileRepository(testRepo), "notaref");
  }
View Full Code Here

   *
   * @throws Exception
   */
  @Test(expected = IllegalArgumentException.class)
  public void getRefWithNullRef() throws Exception {
    CommitUtils.getRef(new FileRepository(testRepo), (Ref) null);
  }
View Full Code Here

   *
   * @throws Exception
   */
  @Test(expected = IllegalArgumentException.class)
  public void getRefWithNullRefName() throws Exception {
    CommitUtils.getRef(new FileRepository(testRepo), (String) null);
  }
View Full Code Here

   *
   * @throws Exception
   */
  @Test(expected = IllegalArgumentException.class)
  public void getRefWithEmptyRefName() throws Exception {
    CommitUtils.getRef(new FileRepository(testRepo), "");
  }
View Full Code Here

      public Ref getLeaf() {
        return null;
      }
    };
    assertNull(CommitUtils.getRef(new FileRepository(testRepo), ref));
  }
View Full Code Here

      public Ref getLeaf() {
        return null;
      }
    };
    CommitUtils.getRef(new FileRepository(testRepo), ref);
  }
View Full Code Here

   *
   * @throws Exception
   */
  @Test(expected = GitException.class)
  public void getBaseWithZeroId() throws Exception {
    CommitUtils.getBase(new FileRepository(testRepo), ObjectId.zeroId());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.storage.file.FileRepository

Copyright © 2018 www.massapicom. 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.