* @throws Exception
*/
@Test
public void singleAdd() throws Exception {
add("test.txt", "content");
DiffFileCountFilter filter = new DiffFileCountFilter();
new CommitFinder(testRepo).setFilter(filter).find();
assertEquals(1, filter.getAdded());
assertEquals(0, filter.getEdited());
assertEquals(0, filter.getDeleted());
assertEquals(0, filter.getRenamed());
assertEquals(0, filter.getCopied());
assertEquals(1, filter.getTotal());
filter.reset();
assertEquals(0, filter.getAdded());
assertEquals(0, filter.getTotal());
}