Example usage for org.eclipse.jgit.revwalk.filter RevFilter NONE

List of usage examples for org.eclipse.jgit.revwalk.filter RevFilter NONE

Introduction

In this page you can find the example usage for org.eclipse.jgit.revwalk.filter RevFilter NONE.

Prototype

RevFilter NONE

To view the source code for org.eclipse.jgit.revwalk.filter RevFilter NONE.

Click Source Link

Document

Default filter that always returns false (thread safe).

Usage

From source file:org.gitective.tests.CursorTest.java

License:Open Source License

/**
 * Test clone of {@link CommitCursorFilter}
 * /*from   w w w.jav a  2  s  .com*/
 * @throws Exception
 */
@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));
}