aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api-impl/src/test
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2022-09-12 10:36:34 +0200
committersonartech <sonartech@sonarsource.com>2022-09-16 20:03:14 +0000
commit16b2a8daecf6ec8473109048b723c1042a50be7d (patch)
tree299f7b3ecfa31d4fea297f1c7000ec8d2c2752c7 /sonar-plugin-api-impl/src/test
parentd6abb3ee19911c06bd8c01f4e57bcf8aaff445f9 (diff)
downloadsonarqube-16b2a8daecf6ec8473109048b723c1042a50be7d.tar.gz
sonarqube-16b2a8daecf6ec8473109048b723c1042a50be7d.zip
SONAR-17287 implementing new method from NewIssue interface
Diffstat (limited to 'sonar-plugin-api-impl/src/test')
-rw-r--r--sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java b/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java
index 085ba25f645..515380b0e25 100644
--- a/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java
+++ b/sonar-plugin-api-impl/src/test/java/org/sonar/api/batch/sensor/issue/internal/DefaultIssueTest.java
@@ -37,6 +37,7 @@ import org.sonar.api.batch.fs.internal.DefaultTextRange;
import org.sonar.api.batch.fs.internal.TestInputFileBuilder;
import org.sonar.api.batch.rule.Severity;
import org.sonar.api.batch.sensor.internal.SensorStorage;
+import org.sonar.api.batch.sensor.issue.NewIssue;
import org.sonar.api.rule.RuleKey;
import static org.assertj.core.api.Assertions.assertThat;
@@ -93,7 +94,7 @@ public class DefaultIssueTest {
DefaultIssue issue = new DefaultIssue(project, storage)
.at(new DefaultIssueLocation().on(inputFile))
- .addFlow(List.of(new DefaultIssueLocation().message("loc1").on(inputFile)), DefaultIssueFlow.Type.DATA, "desc")
+ .addFlow(List.of(new DefaultIssueLocation().message("loc1").on(inputFile)), NewIssue.FlowType.DATA, "desc")
.addFlow(List.of(new DefaultIssueLocation().message("loc1").on(inputFile).at(range1), new DefaultIssueLocation().message("loc1").on(inputFile).at(range2)))
.forRule(RULE_KEY);