From 4434c2ae06e098bb3dbf1aa21edff2a6857699e0 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Fri, 20 Feb 2015 15:43:13 +0100 Subject: SONAR-6175 Validate that offsets provided for highlighting and symbol reference are val --- .../src/test/java/org/sonar/xoo/lang/SyntaxHighlightingSensorTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/sonar-xoo-plugin') diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/SyntaxHighlightingSensorTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/SyntaxHighlightingSensorTest.java index 9b9a7baca05..d31724c73e8 100644 --- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/SyntaxHighlightingSensorTest.java +++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/SyntaxHighlightingSensorTest.java @@ -66,7 +66,7 @@ public class SyntaxHighlightingSensorTest { public void testExecution() throws IOException { File symbol = new File(baseDir, "src/foo.xoo.highlighting"); FileUtils.write(symbol, "1:4:k\n12:15:cppd\n\n#comment"); - DefaultInputFile inputFile = new DefaultInputFile("foo", "src/foo.xoo").setLanguage("xoo"); + DefaultInputFile inputFile = new DefaultInputFile("foo", "src/foo.xoo").setLanguage("xoo").setLastValidOffset(100); context.fileSystem().add(inputFile); sensor.execute(context); -- cgit v1.2.3