diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2015-02-20 15:43:13 +0100 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2015-02-20 16:12:06 +0100 |
commit | 4434c2ae06e098bb3dbf1aa21edff2a6857699e0 (patch) | |
tree | 0ece0631b0bb9b27a3a38afcda2ae771b76ed653 /plugins | |
parent | 237bc2074a3a8641d9464289ddb5d06b9f7565ea (diff) | |
download | sonarqube-4434c2ae06e098bb3dbf1aa21edff2a6857699e0.tar.gz sonarqube-4434c2ae06e098bb3dbf1aa21edff2a6857699e0.zip |
SONAR-6175 Validate that offsets provided for highlighting and symbol reference are val
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/SyntaxHighlightingSensorTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |