aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-core
diff options
context:
space:
mode:
authorZipeng WU <zipeng.wu@sonarsource.com>2022-05-10 15:49:14 +0200
committersonartech <sonartech@sonarsource.com>2022-05-11 20:02:59 +0000
commitb26a95828aa3a52f9855f95e7b987ff72020e7de (patch)
treea64e3a7bf3d2a40be3969ec779db227200bd1606 /server/sonar-webserver-core
parentbf0c2e6432fc59fee288a3d1a3df19c7edd49943 (diff)
downloadsonarqube-b26a95828aa3a52f9855f95e7b987ff72020e7de.tar.gz
sonarqube-b26a95828aa3a52f9855f95e7b987ff72020e7de.zip
SONAR-16303 Change RuleDescriptionFormatter from a static helper to regular bean
Diffstat (limited to 'server/sonar-webserver-core')
-rw-r--r--server/sonar-webserver-core/src/test/java/org/sonar/server/rule/RegisterRulesTest.java2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/RegisterRulesTest.java b/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/RegisterRulesTest.java
index 3aa93a6af1e..39795de074f 100644
--- a/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/RegisterRulesTest.java
+++ b/server/sonar-webserver-core/src/test/java/org/sonar/server/rule/RegisterRulesTest.java
@@ -141,7 +141,6 @@ public class RegisterRulesTest {
return Set.of(builder().uuid(UuidFactoryFast.getInstance().create()).key("default").content(description).build());
});
-
when(ruleDescriptionSectionsGenerator.isGeneratorForRule(any())).thenReturn(true);
}
@@ -202,7 +201,6 @@ public class RegisterRulesTest {
verifyHotspot(hotspotRule);
}
-
private void verifyRule(RuleDto rule) {
assertThat(rule.getName()).isEqualTo("One");
assertThat(rule.getDefaultRuleDescriptionSection().getContent()).isEqualTo("Description of One");