diff options
author | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-10 16:20:27 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@gmail.com> | 2013-10-10 17:15:36 +0200 |
commit | 11ac96d84c6083bfb907195328fb7089b5be6492 (patch) | |
tree | 64452deed11953f8333e18b81e0b8965e292aa19 /plugins/sonar-core-plugin | |
parent | b288cca1db46743ed67056b6e962420dd1855d1e (diff) | |
download | sonarqube-11ac96d84c6083bfb907195328fb7089b5be6492.tar.gz sonarqube-11ac96d84c6083bfb907195328fb7089b5be6492.zip |
SONAR-4754 Update default dashboard to add the "Technical Debt" widget
Diffstat (limited to 'plugins/sonar-core-plugin')
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboard.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboard.java index f4c980a447f..283aed1af7c 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboard.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboard.java @@ -54,6 +54,7 @@ public final class ProjectDefaultDashboard extends DashboardTemplate { } private void addSecondColumn(Dashboard dashboard) { + dashboard.addWidget("technical_debt", 2); dashboard.addWidget("rules", 2); dashboard.addWidget("alerts", 2); dashboard.addWidget("file_design", 2); diff --git a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboardTest.java b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboardTest.java index ce13176f85a..65e63738ad9 100644 --- a/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboardTest.java +++ b/plugins/sonar-core-plugin/src/test/java/org/sonar/plugins/core/dashboards/ProjectDefaultDashboardTest.java @@ -44,6 +44,6 @@ public class ProjectDefaultDashboardTest { Dashboard dashboard = template.createDashboard(); assertThat(dashboard.getLayout()).isEqualTo(DashboardLayout.TWO_COLUMNS); - assertThat(dashboard.getWidgets()).hasSize(11); + assertThat(dashboard.getWidgets()).hasSize(12); } } |