Examples of clone()


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

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

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

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

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

   * Test {@link EmptyBlobAddFilter#clone()}
   */
  @Test
  public void cloneAdd() {
    EmptyBlobAddFilter filter = new EmptyBlobAddFilter(true);
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof EmptyBlobAddFilter);
  }

View Full Code Here

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

   * Test {@link EmptyBlobRemoveFilter#clone()}
   */
  @Test
  public void cloneRemove() {
    EmptyBlobRemoveFilter filter = new EmptyBlobRemoveFilter(true);
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof EmptyBlobRemoveFilter);
  }

View Full Code Here

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

   */
  @Test
  public void cloneFilter() {
    LastCommitFilter filter = new LastCommitFilter();
    assertNull(filter.getLast());
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof LastCommitFilter);
    assertNull(((LastCommitFilter) clone).getLast());
  }
View Full Code Here

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

   * @throws Exception
   */
  @Test
  public void cloneContentFilter() throws Exception {
    NoteContentFilter filter = new NoteContentFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof NoteContentFilter);
  }

View Full Code Here

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

   * Unit test of {@link NoteFilter#clone()}
   */
  @Test
  public void cloneFilter() {
    NoteFilter filter = new NoteFilter();
    RevFilter clone = filter.clone();
    assertNotNull(clone);
    assertNotSame(filter, clone);
    assertTrue(clone instanceof NoteFilter);
  }

View Full Code Here

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

   */
  @Test
  public void cloneFilter() {
    CommitCountFilter count = new CommitCountFilter();
    OrCommitFilter or = new OrCommitFilter(count);
    RevFilter clone = or.clone();
    assertNotNull(clone);
    assertNotSame(or, clone);
    assertTrue(clone instanceof OrCommitFilter);
  }

View Full Code Here

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

    ParentCountFilter parents = new ParentCountFilter(1);
    service.setFilter(new AndCommitFilter(parents, commits));
    service.find();
    assertEquals(commit2, commits.getCommits().get(0));

    RevFilter clone = parents.clone();
    assertNotNull(clone);
    assertNotSame(parents, clone);

    commits = new CommitListFilter();
    service.setFilter(new AndCommitFilter(clone, commits));
View Full Code Here

Examples of org.gitective.core.filter.tree.ExtensionOccurrenceFilter.clone()

   * @throws Exception
   */
  @Test
  public void cloneFilter() throws Exception {
    ExtensionOccurrenceFilter filter1 = new ExtensionOccurrenceFilter();
    TreeFilter filter2 = filter1.clone();
    assertNotNull(filter2);
    assertTrue(filter2 instanceof ExtensionOccurrenceFilter);
    assertNotSame(filter1, filter2);
  }
}
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.