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 /sonar-core/src/test/java | |
parent | 233c3c9320d8f22b75eb657dc58d7b1974f1478e (diff) | |
download | sonarqube-f8b052dd328e5348266764edca80b87249896a5b.tar.gz sonarqube-f8b052dd328e5348266764edca80b87249896a5b.zip |
[NO JIRA] Replace 'squid' with 'java'
Diffstat (limited to 'sonar-core/src/test/java')
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java | 4 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java index 53d866457c0..3c8ca77a091 100644 --- a/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java +++ b/sonar-core/src/test/java/org/sonar/core/issue/DefaultIssueTest.java @@ -40,7 +40,7 @@ public class DefaultIssueTest { issue.setKey("ABCD") .setComponentKey("org.sample.Sample") .setProjectKey("Sample") - .setRuleKey(RuleKey.of("squid", "S100")) + .setRuleKey(RuleKey.of("java", "S100")) .setLanguage("xoo") .setSeverity("MINOR") .setManualSeverity(true) @@ -70,7 +70,7 @@ public class DefaultIssueTest { assertThat(issue.key()).isEqualTo("ABCD"); assertThat(issue.componentKey()).isEqualTo("org.sample.Sample"); assertThat(issue.projectKey()).isEqualTo("Sample"); - assertThat(issue.ruleKey()).isEqualTo(RuleKey.of("squid", "S100")); + assertThat(issue.ruleKey()).isEqualTo(RuleKey.of("java", "S100")); assertThat(issue.language()).isEqualTo("xoo"); assertThat(issue.severity()).isEqualTo("MINOR"); assertThat(issue.manualSeverity()).isTrue(); diff --git a/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java b/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java index 45fe1bfaf19..743f54720e4 100644 --- a/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java +++ b/sonar-core/src/test/java/org/sonar/core/issue/tracking/TrackerTest.java @@ -282,8 +282,8 @@ public class TrackerTest { + " }", "}"); - Issue base1 = baseInput.createIssueOnLine(11, RuleKey.of("squid", "S109"), "Assign this magic number 42 to a well-named constant, and use the constant instead."); - Issue base2 = baseInput.createIssueOnLine(13, RuleKey.of("squid", "S00103"), "Split this 163 characters long line (which is greater than 120 authorized)."); + Issue base1 = baseInput.createIssueOnLine(11, RuleKey.of("java", "S109"), "Assign this magic number 42 to a well-named constant, and use the constant instead."); + Issue base2 = baseInput.createIssueOnLine(13, RuleKey.of("java", "S00103"), "Split this 163 characters long line (which is greater than 120 authorized)."); FakeInput rawInput = FakeInput.createForSourceLines( "package aa;", @@ -303,8 +303,8 @@ public class TrackerTest { " int x = a + 123;", " }", "}"); - Issue raw1 = rawInput.createIssueOnLine(11, RuleKey.of("squid", "S00103"), "Split this 139 characters long line (which is greater than 120 authorized)."); - Issue raw2 = rawInput.createIssueOnLine(15, RuleKey.of("squid", "S109"), "Assign this magic number 123 to a well-named constant, and use the constant instead."); + Issue raw1 = rawInput.createIssueOnLine(11, RuleKey.of("java", "S00103"), "Split this 139 characters long line (which is greater than 120 authorized)."); + Issue raw2 = rawInput.createIssueOnLine(15, RuleKey.of("java", "S109"), "Assign this magic number 123 to a well-named constant, and use the constant instead."); Tracking<Issue, Issue> tracking = tracker.trackNonClosed(rawInput, baseInput); assertThat(tracking.baseFor(raw1)).isNull(); |