diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2022-09-15 13:49:31 -0500 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-09-16 20:03:14 +0000 |
commit | f51e80efde03d0af839d4991a31300f0f36088d3 (patch) | |
tree | 7c9f36e736e1ab83714c92512df0790242e4ca14 /plugins/sonar-xoo-plugin | |
parent | 227f5d3bfc797c8ecc7ebe7e283af3b68522c1ad (diff) | |
download | sonarqube-f51e80efde03d0af839d4991a31300f0f36088d3.tar.gz sonarqube-f51e80efde03d0af839d4991a31300f0f36088d3.zip |
SONAR-17287 Fix quality issues and adopt changes to API
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/MultilineIssuesSensorTest.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/MultilineIssuesSensorTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/MultilineIssuesSensorTest.java index 449ed220f5b..916ff200329 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/MultilineIssuesSensorTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/MultilineIssuesSensorTest.java @@ -35,8 +35,9 @@ import org.sonar.api.batch.rule.ActiveRule; import org.sonar.api.batch.rule.ActiveRules; import org.sonar.api.batch.sensor.internal.SensorContextTester; import org.sonar.api.batch.sensor.issue.Issue; +import org.sonar.api.batch.sensor.issue.NewIssue; +import org.sonar.api.batch.sensor.issue.NewIssue.FlowType; import org.sonar.api.batch.sensor.issue.internal.DefaultIssueFlow; -import org.sonar.api.batch.sensor.issue.internal.DefaultIssueFlow.Type; import org.sonar.api.internal.apachecommons.io.IOUtils; import org.sonar.xoo.Xoo; @@ -77,7 +78,7 @@ public class MultilineIssuesSensorTest { List<DefaultIssueFlow> defaultIssueFlows = flows.stream().map(DefaultIssueFlow.class::cast).collect(Collectors.toList()); - assertThat(defaultIssueFlows).extracting(DefaultIssueFlow::getType).containsExactlyInAnyOrder(Type.DATA, Type.EXECUTION); + assertThat(defaultIssueFlows).extracting(DefaultIssueFlow::type).containsExactlyInAnyOrder(FlowType.DATA, FlowType.EXECUTION); } private DefaultInputFile newTestFile(String content) { |