aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-pushapi
diff options
context:
space:
mode:
authorAurelien Poscia <aurelien.poscia@sonarsource.com>2022-04-23 14:21:23 +0200
committersonartech <sonartech@sonarsource.com>2022-05-06 20:02:43 +0000
commitc333b3ae6984bf1b402d3398fa71de7f0a75b817 (patch)
tree7f7746ef734959e0c73c94b405fb1dec7d93eb0c /server/sonar-webserver-pushapi
parentc063d9205ddfbca5ebd6136e1506d8dc6974ff35 (diff)
downloadsonarqube-c333b3ae6984bf1b402d3398fa71de7f0a75b817.tar.gz
sonarqube-c333b3ae6984bf1b402d3398fa71de7f0a75b817.zip
SONAR-16302 persist and fetch rules with new DB structure
Diffstat (limited to 'server/sonar-webserver-pushapi')
-rw-r--r--server/sonar-webserver-pushapi/src/test/java/org/sonar/server/qualityprofile/builtin/QualityProfileChangeEventServiceImplTest.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/qualityprofile/builtin/QualityProfileChangeEventServiceImplTest.java b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/qualityprofile/builtin/QualityProfileChangeEventServiceImplTest.java
index 77b5db39783..f96821ea009 100644
--- a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/qualityprofile/builtin/QualityProfileChangeEventServiceImplTest.java
+++ b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/qualityprofile/builtin/QualityProfileChangeEventServiceImplTest.java
@@ -74,7 +74,7 @@ public class QualityProfileChangeEventServiceImplTest {
.setRepositoryKey("repo")
.setRuleKey("ruleKey")
.setDescriptionFormat(RuleDto.Format.MARKDOWN)
- .addRuleDescriptionSectionDto(createDefaultRuleDescriptionSection("<div>line1\nline2</div>"));
+ .addOrReplaceRuleDescriptionSectionDto(createDefaultRuleDescriptionSection("uuid", "<div>line1\nline2</div>"));
db.rules().insert(rule1);
ActiveRuleDto activeRuleDto = ActiveRuleDto.createFor(qualityProfileDto, rule1);