|
|
@ -26,7 +26,7 @@ public class FileUtilTest {
|
|
|
|
String testText = "abcd简体繁体\uD83D\uDE04\uD83D\uDD25& *\n" +
|
|
|
|
String testText = "abcd简体繁体\uD83D\uDE04\uD83D\uDD25& *\n" +
|
|
|
|
"second line\n" +
|
|
|
|
"second line\n" +
|
|
|
|
"empty line next\n";
|
|
|
|
"empty line next\n";
|
|
|
|
String testFilePath = "classpath:/test/test_utf8.txt";
|
|
|
|
String testFilePath = "test/test_utf8.txt";
|
|
|
|
String contentByFileUtil = FileUtil.readUtf8String(testFilePath);
|
|
|
|
String contentByFileUtil = FileUtil.readUtf8String(testFilePath);
|
|
|
|
Assert.isTrue(testText.equals(contentByFileUtil));
|
|
|
|
Assert.isTrue(testText.equals(contentByFileUtil));
|
|
|
|
}
|
|
|
|
}
|
|
|
|