mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix charset in tests
GitOrigin-RevId: b3d43238a32189c771ef5591b4d34a83ed8dd733
This commit is contained in:
committed by
intellij-monorepo-bot
parent
38e1f217d4
commit
b7f2e6941a
+3
-2
@@ -10,6 +10,7 @@ import org.junit.runners.Parameterized;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
|
||||
@@ -48,14 +49,14 @@ public class GradleDependencyUpdaterTestBase extends GradleImportingTestCase {
|
||||
protected void assertScriptChanged() throws IOException {
|
||||
File expected = new File(myTestDataDir, "expected/" + getTestName(true) + myTestDataExtension);
|
||||
String expectedData = FileUtil.loadFile(expected, "UTF-8");
|
||||
String actualData = new String(myProjectRoot.findChild("build" + myTestDataExtension).contentsToByteArray(), "UTF-8");
|
||||
String actualData = new String(myProjectRoot.findChild("build" + myTestDataExtension).contentsToByteArray(), StandardCharsets.UTF_8);
|
||||
assertSameLines(expectedData, actualData);
|
||||
}
|
||||
|
||||
protected void assertScriptNotChanged() throws IOException {
|
||||
File expected = new File(myTestDataDir, "projects/" + getTestName(true) + myTestDataExtension);
|
||||
String expectedData = FileUtil.loadFile(expected, "UTF-8");
|
||||
String actualData = new String(myProjectRoot.findChild("build" + myTestDataExtension).contentsToByteArray(), "UTF-8");
|
||||
String actualData = new String(myProjectRoot.findChild("build" + myTestDataExtension).contentsToByteArray(), StandardCharsets.UTF_8);
|
||||
assertSameLines(expectedData, actualData);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user