Examples of ITreeVisitor


Examples of org.gitective.core.TreeUtils.ITreeVisitor

  /**
   * Visit with null repository
   */
  @Test(expected = IllegalArgumentException.class)
  public void visitNullRepository() {
    TreeUtils.visit(null, ObjectId.zeroId(), new ITreeVisitor() {

      public boolean accept(FileMode mode, String path, String name,
          AnyObjectId id) {
        return false;
      }
View Full Code Here

Examples of org.gitective.core.TreeUtils.ITreeVisitor

   *
   * @throws IOException
   */
  @Test(expected = IllegalArgumentException.class)
  public void visitNullTreeId() throws IOException {
    TreeUtils.visit(new FileRepository(testRepo), null, new ITreeVisitor() {

      public boolean accept(FileMode mode, String path, String name,
          AnyObjectId id) {
        return false;
      }
View Full Code Here

Examples of org.gitective.core.TreeUtils.ITreeVisitor

    final AtomicInteger files = new AtomicInteger(0);
    final AtomicInteger folders = new AtomicInteger(0);
    final List<String> fullPaths = new ArrayList<String>();
    final Set<AnyObjectId> ids = new HashSet<AnyObjectId>();
    assertTrue(TreeUtils.visit(new FileRepository(testRepo),
        commit.getTree(), new ITreeVisitor() {

          public boolean accept(FileMode mode, String path,
              String name, AnyObjectId id) {
            if (mode == REGULAR_FILE)
              files.incrementAndGet();
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.