diff options
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/AnalysisErrorSensorTest.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/AnalysisErrorSensorTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/AnalysisErrorSensorTest.java index 8067a67acb2..d39b66e80f9 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/AnalysisErrorSensorTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/rule/AnalysisErrorSensorTest.java @@ -64,7 +64,11 @@ public class AnalysisErrorSensorTest { Path baseDir = temp.newFolder().toPath().toAbsolutePath(); createErrorFile(baseDir); - DefaultInputFile inputFile = new DefaultInputFile("foo", "src/foo.xoo").setLanguage("xoo"); + int[] offsets = {10, 20, 30, 40}; + DefaultInputFile inputFile = new DefaultInputFile("foo", "src/foo.xoo") + .setLanguage("xoo") + .setOriginalLineOffsets(offsets) + .setLines(4); context = SensorContextTester.create(baseDir); context.fileSystem().add(inputFile); |