diff options
author | Belen Pruvost <belen.pruvost@sonarsource.com> | 2022-07-06 16:55:00 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-07-07 20:03:10 +0000 |
commit | f8b052dd328e5348266764edca80b87249896a5b (patch) | |
tree | 49827fb100d862f9208de1b0fd09476f905017af /server/sonar-ce-task-projectanalysis/src | |
parent | 233c3c9320d8f22b75eb657dc58d7b1974f1478e (diff) | |
download | sonarqube-f8b052dd328e5348266764edca80b87249896a5b.tar.gz sonarqube-f8b052dd328e5348266764edca80b87249896a5b.zip |
[NO JIRA] Replace 'squid' with 'java'
Diffstat (limited to 'server/sonar-ce-task-projectanalysis/src')
2 files changed, 7 insertions, 7 deletions
diff --git a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/issue/UpdateConflictResolverTest.java b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/issue/UpdateConflictResolverTest.java index e1924045dc5..027a48630ef 100644 --- a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/issue/UpdateConflictResolverTest.java +++ b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/issue/UpdateConflictResolverTest.java @@ -42,7 +42,7 @@ public class UpdateConflictResolverTest { DefaultIssue issue = new DefaultIssue() .setKey("ABCDE") .setType(CODE_SMELL) - .setRuleKey(RuleKey.of("squid", "AvoidCycles")) + .setRuleKey(RuleKey.of("java", "AvoidCycles")) .setProjectUuid("U1") .setComponentUuid("U2") .setNew(false) @@ -54,7 +54,7 @@ public class UpdateConflictResolverTest { .setKee("ABCDE") .setType(CODE_SMELL) .setRuleUuid("uuid-10") - .setRuleKey("squid", "AvoidCycles") + .setRuleKey("java", "AvoidCycles") .setProjectUuid("U1") .setComponentUuid("U2") .setLine(10) @@ -76,7 +76,7 @@ public class UpdateConflictResolverTest { public void should_keep_changes_made_by_user() { DefaultIssue issue = new DefaultIssue() .setKey("ABCDE") - .setRuleKey(RuleKey.of("squid", "AvoidCycles")) + .setRuleKey(RuleKey.of("java", "AvoidCycles")) .setComponentKey("struts:org.apache.struts.Action") .setNew(false); @@ -98,7 +98,7 @@ public class UpdateConflictResolverTest { IssueDto dbIssue = new IssueDto() .setKee("ABCDE") .setRuleUuid("uuid-10") - .setRuleKey("squid", "AvoidCycles") + .setRuleKey("java", "AvoidCycles") .setComponentUuid("100") .setComponentKey("struts:org.apache.struts.Action") .setLine(10) @@ -128,7 +128,7 @@ public class UpdateConflictResolverTest { public void severity_changed_by_user_should_be_kept() { DefaultIssue issue = new DefaultIssue() .setKey("ABCDE") - .setRuleKey(RuleKey.of("squid", "AvoidCycles")) + .setRuleKey(RuleKey.of("java", "AvoidCycles")) .setComponentKey("struts:org.apache.struts.Action") .setNew(false) .setStatus(STATUS_OPEN); diff --git a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/qualityprofile/ActiveRulesHolderImplTest.java b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/qualityprofile/ActiveRulesHolderImplTest.java index b7f59f8d85c..eda34de4e22 100644 --- a/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/qualityprofile/ActiveRulesHolderImplTest.java +++ b/server/sonar-ce-task-projectanalysis/src/test/java/org/sonar/ce/task/projectanalysis/qualityprofile/ActiveRulesHolderImplTest.java @@ -35,7 +35,7 @@ public class ActiveRulesHolderImplTest { private static final long SOME_DATE = 1_000L; - static final RuleKey RULE_KEY = RuleKey.of("squid", "S001"); + static final RuleKey RULE_KEY = RuleKey.of("java", "S001"); private static final String QP_KEY = "qp1"; @@ -83,6 +83,6 @@ public class ActiveRulesHolderImplTest { new ActiveRule(RULE_KEY, Severity.MAJOR, Collections.emptyMap(), SOME_DATE, PLUGIN_KEY, QP_KEY))); }) .isInstanceOf(IllegalArgumentException.class) - .hasMessage("Active rule must not be declared multiple times: squid:S001"); + .hasMessage("Active rule must not be declared multiple times: java:S001"); } } |