diff options
author | Aurelien Poscia <aurelien.poscia@sonarsource.com> | 2022-04-23 14:21:23 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-05-06 20:02:43 +0000 |
commit | c333b3ae6984bf1b402d3398fa71de7f0a75b817 (patch) | |
tree | 7f7746ef734959e0c73c94b405fb1dec7d93eb0c /server/sonar-webserver-api/src/test | |
parent | c063d9205ddfbca5ebd6136e1506d8dc6974ff35 (diff) | |
download | sonarqube-c333b3ae6984bf1b402d3398fa71de7f0a75b817.tar.gz sonarqube-c333b3ae6984bf1b402d3398fa71de7f0a75b817.zip |
SONAR-16302 persist and fetch rules with new DB structure
Diffstat (limited to 'server/sonar-webserver-api/src/test')
-rw-r--r-- | server/sonar-webserver-api/src/test/java/org/sonar/server/rule/CachingRuleFinderTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-webserver-api/src/test/java/org/sonar/server/rule/CachingRuleFinderTest.java b/server/sonar-webserver-api/src/test/java/org/sonar/server/rule/CachingRuleFinderTest.java index cd2c2235981..57db0bb1390 100644 --- a/server/sonar-webserver-api/src/test/java/org/sonar/server/rule/CachingRuleFinderTest.java +++ b/server/sonar-webserver-api/src/test/java/org/sonar/server/rule/CachingRuleFinderTest.java @@ -46,7 +46,6 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.verifyNoMoreInteractions; import static org.mockito.Mockito.when; -import static org.sonar.db.rule.RuleDescriptionSectionDto.createDefaultRuleDescriptionSection; public class CachingRuleFinderTest { @org.junit.Rule @@ -423,7 +422,7 @@ public class CachingRuleFinderTest { assertThat(rule.getSeverity().name()).isEqualTo(ruleDefinition.getSeverityString()); assertThat(rule.getSystemTags()).isEqualTo(ruleDefinition.getSystemTags().toArray(new String[0])); assertThat(rule.getTags()).isEmpty(); - assertThat(rule.getDescription()).isEqualTo(createDefaultRuleDescriptionSection(randomAlphabetic(5)).getDescription()); + assertThat(rule.getDescription()).isEqualTo(ruleDefinition.getDefaultRuleDescriptionSectionDto().getDescription()); assertThat(rule.getParams()).hasSize(1); org.sonar.api.rules.RuleParam param = rule.getParams().iterator().next(); |