Package org.gitective.core.filter.commit

Examples of org.gitective.core.filter.commit.DiffCountFilter


   * @throws Exception
   */
  @Test
  public void defaultFilter() throws Exception {
    add("file.txt", "a\nb\nc");
    DiffCountFilter filter = new DiffCountFilter();
    filter.setStop(true);
    new CommitFinder(testRepo).setFilter(filter).find();
  }
View Full Code Here


   *
   * @throws Exception
   */
  @Test
  public void cloneFilter() throws Exception {
    DiffCountFilter filter1 = new DiffCountFilter();
    RevFilter filter2 = filter1.clone();
    assertNotNull(filter2);
    assertTrue(filter2 instanceof DiffCountFilter);
    assertNotSame(filter1, filter2);
  }
View Full Code Here

  public void diffSingleFile() throws Exception {
    add("file.txt", "a\nb\nc");
    add("file.txt", "a\nb2\nc");
    add("file.txt", "");
    final List<Integer> counts = new ArrayList<Integer>();
    DiffCountFilter filter = new DiffCountFilter() {

      protected boolean include(RevCommit commit,
          Collection<DiffEntry> diffs, int diffCount) {
        counts.add(0, diffCount);
        return true;
View Full Code Here

TOP

Related Classes of org.gitective.core.filter.commit.DiffCountFilter

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.