/** * Reset filter * * @throws Exception */ @Test public void resetFilter() throws Exception { add("f.txt", "content"); TypeCountFilter filter = TypeCountFilter.file(); new CommitFinder(testRepo).setFilter(new CommitTreeFilter(filter)).find(); assertEquals(1, filter.getCount()); filter.reset(); assertEquals(0, filter.getCount()); }