aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-xoo-plugin
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2023-06-23 15:02:17 +0200
committersonartech <sonartech@sonarsource.com>2023-06-26 20:03:54 +0000
commit4a5c7093442db89647e5ce594e819824ed3fb8df (patch)
treecfdfc8879f0a900996a681a31874c9e0721fa607 /plugins/sonar-xoo-plugin
parent06c318c67ce957215461cd51c696000c0dbd3003 (diff)
downloadsonarqube-4a5c7093442db89647e5ce594e819824ed3fb8df.tar.gz
sonarqube-4a5c7093442db89647e5ce594e819824ed3fb8df.zip
SONAR-19690 fixed tests after upgrading dependency
Diffstat (limited to 'plugins/sonar-xoo-plugin')
-rw-r--r--plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/CpdTokenizerSensorTest.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/CpdTokenizerSensorTest.java b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/CpdTokenizerSensorTest.java
index be9a6a397de..e462f52c753 100644
--- a/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/CpdTokenizerSensorTest.java
+++ b/plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/CpdTokenizerSensorTest.java
@@ -21,6 +21,7 @@ package org.sonar.xoo.lang;
import java.io.File;
import java.io.IOException;
+import java.nio.charset.Charset;
import org.apache.commons.io.FileUtils;
import org.junit.Before;
import org.junit.Rule;
@@ -76,6 +77,7 @@ public class CpdTokenizerSensorTest {
InputFile inputFile = new TestInputFileBuilder("foo", "src/foo.xoo")
.setLanguage("xoo")
.initMetadata(content)
+ .setCharset(Charset.defaultCharset())
.setModuleBaseDir(baseDir.toPath())
.build();
context.fileSystem().add(inputFile);