]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19690 fixed tests after upgrading dependency
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>
Fri, 23 Jun 2023 13:02:17 +0000 (15:02 +0200)
committersonartech <sonartech@sonarsource.com>
Mon, 26 Jun 2023 20:03:54 +0000 (20:03 +0000)
plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/CpdTokenizerSensorTest.java

index be9a6a397ded9740d5e0e3bd62b92b5df8b17820..e462f52c753b7360a88b127d857c69938330d7a9 100644 (file)
@@ -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);