diff options
author | Lukasz Jarocki <lukasz.jarocki@sonarsource.com> | 2022-11-25 10:15:15 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-12-01 20:03:12 +0000 |
commit | 45f2da118a4fff160a9dbf57a1b5c2a67ac0849a (patch) | |
tree | 774828c56c84be4f9f1e264ca958fb84a5ce4e56 /sonar-scanner-engine | |
parent | 66b8bff0dcc778eb93da92cd408214bbfca82c2a (diff) | |
download | sonarqube-45f2da118a4fff160a9dbf57a1b5c2a67ac0849a.tar.gz sonarqube-45f2da118a4fff160a9dbf57a1b5c2a67ac0849a.zip |
SONAR-17592 adding code formatting in one of the sensor in xoo plugin
Diffstat (limited to 'sonar-scanner-engine')
-rw-r--r-- | sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/issues/MultilineIssuesMediumTest.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/issues/MultilineIssuesMediumTest.java b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/issues/MultilineIssuesMediumTest.java index 3066e4a0b39..fda1ee5e57e 100644 --- a/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/issues/MultilineIssuesMediumTest.java +++ b/sonar-scanner-engine/src/test/java/org/sonar/scanner/mediumtest/issues/MultilineIssuesMediumTest.java @@ -28,7 +28,6 @@ import org.junit.Test; import org.junit.rules.TemporaryFolder; import org.sonar.scanner.mediumtest.AnalysisResult; import org.sonar.scanner.mediumtest.ScannerMediumTester; -import org.sonar.scanner.protocol.output.ScannerReport; import org.sonar.scanner.protocol.output.ScannerReport.Flow; import org.sonar.scanner.protocol.output.ScannerReport.FlowType; import org.sonar.scanner.protocol.output.ScannerReport.Issue; @@ -69,7 +68,7 @@ public class MultilineIssuesMediumTest { List<Issue> issues = result.issuesFor(result.inputFile("xources/hello/Single.xoo")); assertThat(issues).hasSize(1); Issue issue = issues.get(0); - assertThat(issue.getMsg()).isEqualTo("Primary location"); + assertThat(issue.getMsg()).isEqualTo("Primary location of the issue in xoo code"); assertThat(issue.getTextRange().getStartLine()).isEqualTo(6); assertThat(issue.getTextRange().getStartOffset()).isEqualTo(23); assertThat(issue.getTextRange().getEndLine()).isEqualTo(6); @@ -81,7 +80,7 @@ public class MultilineIssuesMediumTest { List<Issue> issues = result.issuesFor(result.inputFile("xources/hello/Multiline.xoo")); assertThat(issues).hasSize(1); Issue issue = issues.get(0); - assertThat(issue.getMsg()).isEqualTo("Primary location"); + assertThat(issue.getMsg()).isEqualTo("Primary location of the issue in xoo code"); assertThat(issue.getTextRange().getStartLine()).isEqualTo(6); assertThat(issue.getTextRange().getStartOffset()).isEqualTo(23); assertThat(issue.getTextRange().getEndLine()).isEqualTo(7); @@ -93,7 +92,7 @@ public class MultilineIssuesMediumTest { List<Issue> issues = result.issuesFor(result.inputFile("xources/hello/Multiple.xoo")); assertThat(issues).hasSize(1); Issue issue = issues.get(0); - assertThat(issue.getMsg()).isEqualTo("Primary location"); + assertThat(issue.getMsg()).isEqualTo("Primary location of the issue in xoo code"); assertThat(issue.getTextRange().getStartLine()).isEqualTo(6); assertThat(issue.getTextRange().getStartOffset()).isEqualTo(23); assertThat(issue.getTextRange().getEndLine()).isEqualTo(6); @@ -103,7 +102,7 @@ public class MultilineIssuesMediumTest { Flow flow = issue.getFlow(0); assertThat(flow.getLocationList()).hasSize(1); IssueLocation additionalLocation = flow.getLocation(0); - assertThat(additionalLocation.getMsg()).isEqualTo("Flow step #1"); + assertThat(additionalLocation.getMsg()).isEqualTo("Xoo code, flow step #1"); assertThat(additionalLocation.getTextRange().getStartLine()).isEqualTo(7); assertThat(additionalLocation.getTextRange().getStartOffset()).isEqualTo(26); assertThat(additionalLocation.getTextRange().getEndLine()).isEqualTo(7); |