We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2aebc6 commit 5c43e36Copy full SHA for 5c43e36
webmagic-core/src/test/java/us/codecraft/webmagic/utils/CharsetUtilsTest.java
@@ -0,0 +1,16 @@
1
+package us.codecraft.webmagic.utils;
2
+
3
+import static org.junit.jupiter.api.Assertions.assertNull;
4
5
+import java.io.IOException;
6
7
+import org.junit.jupiter.api.Test;
8
9
+class CharsetUtilsTest {
10
11
+ @Test
12
+ void testDetectCharset() throws IOException {
13
+ assertNull(CharsetUtils.detectCharset(null, new byte[0]));
14
+ }
15
16
+}
0 commit comments