From f51e80efde03d0af839d4991a31300f0f36088d3 Mon Sep 17 00:00:00 2001 From: Duarte Meneses Date: Thu, 15 Sep 2022 13:49:31 -0500 Subject: SONAR-17287 Fix quality issues and adopt changes to API --- .../src/test/java/org/sonar/xoo/rule/MultilineIssuesSensorTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/sonar-xoo-plugin/src/test/java/org') 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 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) { -- cgit v1.2.3