Browse Source

SONAR-19690 fixed tests after upgrading dependency

tags/10.2.0.77647
Lukasz Jarocki 10 months ago
parent
commit
4a5c709344

+ 2
- 0
plugins/sonar-xoo-plugin/src/test/java/org/sonar/xoo/lang/CpdTokenizerSensorTest.java View 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);

Loading…
Cancel
Save