complete FileUtil test case (#587) (#595)

pull/602/head
Sean Wu 2 years ago committed by GitHub
parent 29a47565b2
commit 4223f26ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -0,0 +1,3 @@
abcd简体繁体😄🔥& *
second line
empty line next
Loading…
Cancel
Save