aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core/src/test
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-29 07:37:20 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2014-09-29 07:59:35 +0200
commit07158ad5ddc2aef18ad9f3ab816dee2f3a08bcff (patch)
tree1ab9e95c0bf2cc6772edbfe7d48801ab2231fc00 /sonar-core/src/test
parent3bd60acafe0020c0de4f8f29eff70876176fdcb1 (diff)
downloadsonarqube-07158ad5ddc2aef18ad9f3ab816dee2f3a08bcff.tar.gz
sonarqube-07158ad5ddc2aef18ad9f3ab816dee2f3a08bcff.zip
SONAR-5646 add WS api/dashboards/show
Diffstat (limited to 'sonar-core/src/test')
-rw-r--r--sonar-core/src/test/java/org/sonar/core/dashboard/DashboardDaoTest.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/dashboard/DashboardDaoTest.java b/sonar-core/src/test/java/org/sonar/core/dashboard/DashboardDaoTest.java
index d7e6fc1f92e..76afb09d54b 100644
--- a/sonar-core/src/test/java/org/sonar/core/dashboard/DashboardDaoTest.java
+++ b/sonar-core/src/test/java/org/sonar/core/dashboard/DashboardDaoTest.java
@@ -65,7 +65,7 @@ public class DashboardDaoTest extends AbstractDaoTestCase {
dashboardDto.setUpdatedAt(aDate);
WidgetDto widgetDto = new WidgetDto();
- widgetDto.setKey("code_coverage");
+ widgetDto.setWidgetKey("code_coverage");
widgetDto.setName("Code coverage");
widgetDto.setDescription("Widget for code coverage");
widgetDto.setColumnIndex(13);
@@ -76,8 +76,8 @@ public class DashboardDaoTest extends AbstractDaoTestCase {
dashboardDto.addWidget(widgetDto);
WidgetPropertyDto property = new WidgetPropertyDto();
- property.setKey("displayITs");
- property.setValue("true");
+ property.setPropertyKey("displayITs");
+ property.setTextValue("true");
widgetDto.addWidgetProperty(property);
dao.insert(dashboardDto);
@@ -100,7 +100,7 @@ public class DashboardDaoTest extends AbstractDaoTestCase {
dashboardDto.setUpdatedAt(null);
WidgetDto widgetDto = new WidgetDto();
- widgetDto.setKey("code_coverage");
+ widgetDto.setWidgetKey("code_coverage");
widgetDto.setName(null);
widgetDto.setDescription(null);
widgetDto.setColumnIndex(null);
@@ -111,8 +111,8 @@ public class DashboardDaoTest extends AbstractDaoTestCase {
dashboardDto.addWidget(widgetDto);
WidgetPropertyDto property = new WidgetPropertyDto();
- property.setKey(null);
- property.setValue(null);
+ property.setPropertyKey(null);
+ property.setTextValue(null);
widgetDto.addWidgetProperty(property);
dao.insert(dashboardDto);