Examples of AuthorFilter


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

  /**
   * Test clone of {@link AuthorFilter}
   */
  @Test
  public void cloneAuthorFilter() {
    AuthorFilter filter = new AuthorFilter(author);
    RevFilter cloned = filter.clone();
    assertNotNull(cloned);
    assertNotSame(filter, cloned);
    assertTrue(cloned instanceof AuthorFilter);
  }
View Full Code Here

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

    add("file.txt", "a");
    PersonIdent findUser = new PersonIdent("find user", "find@user.com");
    author = findUser;
    RevCommit commit1 = add("file.txt", "b");
    RevCommit commit2 = add("file.txt", "c");
    AuthorFilter filter = new AuthorFilter(findUser);
    CommitListFilter commits = new CommitListFilter();
    CommitFinder service = new CommitFinder(testRepo);
    service.setFilter(new AndCommitFilter(filter, commits));
    service.find();
    assertEquals(2, commits.getCommits().size());
View Full Code Here

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

   * @throws Exception
   */
  @Test
  public void nonMatch() throws Exception {
    add("file.txt", "a");
    AuthorFilter filter = new AuthorFilter("not the author",
        "not@author.org");
    CommitListFilter commits = new CommitListFilter();
    CommitFinder service = new CommitFinder(testRepo);
    service.setFilter(new AndCommitFilter(filter, commits));
    service.find();
View Full Code Here

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

    add("file.txt", "a");
    author = new PersonIdent("franklin", "test@test.com");
    RevCommit commit2 = add("file.txt", "b");
    author = new PersonIdent("franklin", "test@test.org");
    RevCommit commit3 = add("file.txt", "c");
    AuthorFilter filter = new AuthorFilter("franklin", null);
    CommitListFilter commits = new CommitListFilter();
    CommitFinder service = new CommitFinder(testRepo);
    service.setFilter(new AndCommitFilter().add(filter, commits));
    service.find();
    assertEquals(2, commits.getCommits().size());
View Full Code Here

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

    add("file.txt", "a");
    author = new PersonIdent("a user", "test@test.com");
    RevCommit commit2 = add("file.txt", "b");
    author = new PersonIdent("b user", "test@test.com");
    RevCommit commit3 = add("file.txt", "c");
    AuthorFilter filter = new AuthorFilter(null, "test@test.com");
    CommitListFilter commits = new CommitListFilter();
    CommitFinder service = new CommitFinder(testRepo);
    service.setFilter(new AndCommitFilter().add(filter, commits));
    service.find();
    assertEquals(2, commits.getCommits().size());
View Full Code Here

Examples of tahrir.io.net.broadcasts.filters.AuthorFilter

    final BroadcastMessageDisplayPage followingPostPage = new BroadcastMessageDisplayPage(
        new FollowingFilter(this.node.mbClasses.identityStore),this);
    final BroadcastMessageDisplayPage mentionsPostPage = new BroadcastMessageDisplayPage(
                new MentionsFilter(node.mbClasses.identityStore), this);
    final BroadcastMessageDisplayPage myPostsPage = new BroadcastMessageDisplayPage(
        new AuthorFilter(this.node.mbClasses.identityStore), this);
        final ContactBookDisplayPage contactBookDisplayPage = new ContactBookDisplayPage(this);
        final SettingsDisplayPage settingsDisplayPage = new SettingsDisplayPage(this);

      tabbedPane.addTab("All", unfilteredPostPage.getContent());
        tabbedPane.addTab("Following", followingPostPage.getContent());
View Full Code Here

Examples of tahrir.io.net.broadcasts.filters.AuthorFilter

  @Override
  public void actionPerformed(final ActionEvent arg0) {
        final Set<UserIdentity> authors = Sets.newHashSet();
        if(authorIdentity.isPresent())
        authors.add(authorIdentity.get());
    final BroadcastMessageDisplayPage mbDisplayPage = new BroadcastMessageDisplayPage(new AuthorFilter(mainWindow.getNode().mbClasses.identityStore), mainWindow);
    setContents(mbDisplayPage.getContent());
    super.actionPerformed(arg0);
  }
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.