Examples of CommitFinder


Examples of org.gitective.core.CommitFinder

    ShortestMessageFilter filter = new ShortestMessageFilter();
    RevCommit shortest = add("test.txt", "test1", "a");
    add("test.txt", "test2", "ab");
    add("test.txt", "test3", "abcd");
    add("test.txt", "test4", "abc");
    new CommitFinder(testRepo).setFilter(filter).find();
    assertEquals(1, filter.getLength());
    assertNotNull(filter.getCommits());
    assertEquals(1, filter.getCommits().size());
    assertEquals(shortest, filter.getCommits().iterator().next());
  }
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.