diff options
author | Antoine Vinot <antoine.vinot@sonarsource.com> | 2022-06-27 20:14:29 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-06-30 20:03:10 +0000 |
commit | 4eb7b91c56a57096ae44f64b34311cdeaac9b501 (patch) | |
tree | 026d6c460be40c0e17188ab25e68ec827c584e22 /server/sonar-webserver-pushapi | |
parent | bcbc1e6729920d62d198d0683dbd9d92d5f65a04 (diff) | |
download | sonarqube-4eb7b91c56a57096ae44f64b34311cdeaac9b501.tar.gz sonarqube-4eb7b91c56a57096ae44f64b34311cdeaac9b501.zip |
SONAR-16518 Remove replaceRuleDescriptionSectionDtos method
Diffstat (limited to 'server/sonar-webserver-pushapi')
-rw-r--r-- | server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java index f2413b3d519..3484c38d878 100644 --- a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java +++ b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/qualityprofile/QualityProfileChangeEventServiceImplTest.java @@ -62,16 +62,14 @@ public class QualityProfileChangeEventServiceImplTest { public void distributeRuleChangeEvent() { QProfileDto qualityProfileDto = QualityProfileTesting.newQualityProfileDto(); - // Template rule RuleDto templateRule = newTemplateRule(RuleKey.of("xoo", "template-key")); db.rules().insert(templateRule); - // Custom rule - RuleDto rule1 = newCustomRule(templateRule) + + RuleDto rule1 = newCustomRule(templateRule, "<div>line1\nline2</div>") .setLanguage("xoo") .setRepositoryKey("repo") .setRuleKey("ruleKey") - .setDescriptionFormat(RuleDto.Format.MARKDOWN) - .replaceRuleDescriptionSectionDtos(createDefaultRuleDescriptionSection("uuid", "<div>line1\nline2</div>")); + .setDescriptionFormat(RuleDto.Format.MARKDOWN); db.rules().insert(rule1); ActiveRuleDto activeRuleDto = ActiveRuleDto.createFor(qualityProfileDto, rule1); |