Examples of clone()


Examples of org.gitective.core.filter.commit.AndCommitFilter.clone()

   */
  @Test
  public void cloneFilter() {
    CommitLimitFilter limit = new CommitLimitFilter(1);
    AndCommitFilter and = new AndCommitFilter(limit);
    RevFilter clone = and.clone();
    assertNotNull(clone);
    assertNotSame(and, clone);
    assertTrue(clone instanceof AndCommitFilter);
  }
}
View Full Code Here

Examples of org.gitective.core.filter.commit.AuthorDateFilter.clone()

   * @throws Exception
   */
  @Test
  public void authorClone() throws Exception {
    AuthorDateFilter date = new AuthorDateFilter(2);
    RevFilter clone = date.clone();
    assertNotNull(clone);
    assertNotSame(date, clone);
    assertTrue(clone instanceof AuthorDateFilter);
  }

View Full Code Here

Examples of org.gitective.core.filter.commit.AuthorFilter.clone()

   * 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.AuthorSetFilter.clone()

   * Test clone of {@link AuthorSetFilter}
   */
  @Test
  public void cloneAuthorSetFilter() {
    AuthorSetFilter filter = new AuthorSetFilter();
    RevFilter cloned = filter.clone();
    assertNotNull(cloned);
    assertNotSame(filter, cloned);
    assertTrue(cloned instanceof AuthorSetFilter);
  }

View Full Code Here

Examples of org.gitective.core.filter.commit.BugFilter.clone()

  public void cloneBugFilter() throws Exception {
    add("file.txt", "content", "fixes NPE\nBug: abcd");

    CommitCountFilter count = new CommitCountFilter();
    BugFilter filter = new BugFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    new CommitFinder(testRepo).setFilter(
        new AndCommitFilter(filter, clone, count)).find();
View Full Code Here

Examples of org.gitective.core.filter.commit.CommitCountFilter.clone()

   */
  @Test
  public void cloneFilter() {
    CommitCountFilter filter = new CommitCountFilter();
    assertEquals(0, filter.getCount());
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof CommitCountFilter);
    assertEquals(0, ((CommitCountFilter) clone).getCount());
  }
View Full Code Here

Examples of org.gitective.core.filter.commit.CommitCursorFilter.clone()

   */
  @Test
  public void cloneFilter() throws Exception {
    CommitCursorFilter filter = new CommitCursorFilter(RevFilter.NONE);
    assertFalse(filter.include(null, null));
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof CommitCursorFilter);
    assertFalse(clone.include(null, null));
  }
View Full Code Here

Examples of org.gitective.core.filter.commit.CommitFileImpactFilter.clone()

   * Clone a {@link CommitFileImpactFilter}
   */
  @Test
  public void cloneFilter() {
    CommitFileImpactFilter filter = new CommitFileImpactFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertTrue(clone instanceof CommitFileImpactFilter);
    assertNotSame(filter, clone);
    assertEquals(filter.getLimit(),
        ((CommitFileImpactFilter) clone).getLimit());
View Full Code Here

Examples of org.gitective.core.filter.commit.CommitLimitFilter.clone()

    CommitCountFilter count = new CommitCountFilter();
    CommitLimitFilter limit = new CommitLimitFilter(2);
    service.setFilter(new AndCommitFilter(limit, count)).find();
    assertEquals(2, count.getCount());
    count.reset();
    RevFilter clone = limit.clone();
    assertNotNull(clone);
    assertNotSame(limit, clone);
    service.setFilter(new AndCommitFilter(clone, count)).find();
    assertEquals(2, count.getCount());
  }
View Full Code Here

Examples of org.gitective.core.filter.commit.CommitLineImpactFilter.clone()

   * Clone a {@link CommitLineImpactFilter}
   */
  @Test
  public void cloneFilter() {
    CommitLineImpactFilter filter = new CommitLineImpactFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertTrue(clone instanceof CommitLineImpactFilter);
    assertNotSame(filter, clone);
    assertEquals(filter.getLimit(),
        ((CommitLineImpactFilter) clone).getLimit());
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.