Package org.gitective.core.filter.commit

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


    add("file.txt", "patch", Constants.SIGNED_OFF_BY_TAG + person.getName()
        + " <" + person.getEmailAddress() + ">");

    CommitFinder service = new CommitFinder(testRepo);
    CommitCountFilter count = new CommitCountFilter();
    service.setFilter(new AndCommitFilter(new SignedOffByFilter(person),
        count));
    service.find();
    assertEquals(1, count.getCount());

    service.setFilter(new AndCommitFilter(new SignedOffByFilter(person)
        .clone(), count));
    service.find();
    assertEquals(2, count.getCount());
  }
View Full Code Here


    PersonIdent person = new PersonIdent("Test user", "test@user.com");
    add("file.txt", "patch", Constants.SIGNED_OFF_BY_TAG + "person");

    CommitFinder service = new CommitFinder(testRepo);
    CommitCountFilter count = new CommitCountFilter();
    service.setFilter(new AndCommitFilter(new SignedOffByFilter(person),
        count));
    service.find();
    assertEquals(0, count.getCount());
  }
View Full Code Here

TOP

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

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.