diff options
author | James Moger <james.moger@gitblit.com> | 2011-06-07 20:55:19 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2011-06-07 20:55:19 -0400 |
commit | 1fa5e85b2d208636a6237ef8930f200767165baa (patch) | |
tree | 8122ba9fae032b513f0e7bbfdba6c143104bac39 /tests | |
parent | 16856603ec575718857768e2d18e455c95fd6ea4 (diff) | |
download | gitblit-1fa5e85b2d208636a6237ef8930f200767165baa.tar.gz gitblit-1fa5e85b2d208636a6237ef8930f200767165baa.zip |
Improved metrics page and added metrics links to branches panel.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/com/gitblit/tests/MetricUtilsTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/com/gitblit/tests/MetricUtilsTest.java b/tests/com/gitblit/tests/MetricUtilsTest.java index 07cd6060..db994b80 100644 --- a/tests/com/gitblit/tests/MetricUtilsTest.java +++ b/tests/com/gitblit/tests/MetricUtilsTest.java @@ -28,15 +28,15 @@ public class MetricUtilsTest extends TestCase { public void testMetrics() throws Exception {
Repository repository = GitBlitSuite.getHelloworldRepository();
- List<Metric> metrics = MetricUtils.getDateMetrics(repository, true, null);
+ List<Metric> metrics = MetricUtils.getDateMetrics(repository, null, true, null);
repository.close();
assertTrue("No date metrics found!", metrics.size() > 0);
}
public void testAuthorMetrics() throws Exception {
Repository repository = GitBlitSuite.getHelloworldRepository();
- List<Metric> byEmail = MetricUtils.getAuthorMetrics(repository, true);
- List<Metric> byName = MetricUtils.getAuthorMetrics(repository, false);
+ List<Metric> byEmail = MetricUtils.getAuthorMetrics(repository, null, true);
+ List<Metric> byName = MetricUtils.getAuthorMetrics(repository, null, false);
repository.close();
assertTrue("No author metrics found!", byEmail.size() == 9);
assertTrue("No author metrics found!", byName.size() == 8);
|