use of com.gitblit.models.Metric in project gitblit by gitblit.
the class MetricUtilsTest method testAuthorMetrics.
@Test
public void testAuthorMetrics() throws Exception {
Repository repository = GitBlitSuite.getHelloworldRepository();
List<Metric> byEmail = MetricUtils.getAuthorMetrics(repository, null, true);
List<Metric> byName = MetricUtils.getAuthorMetrics(repository, null, false);
repository.close();
assertEquals("No author metrics found!", 9, byEmail.size());
assertEquals("No author metrics found!", 8, byName.size());
}
Aggregations