mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package cn.hutool.core.io;
|
||||
|
||||
import cn.hutool.core.io.resource.ResourceUtil;
|
||||
import cn.hutool.core.lang.func.SerConsumer;
|
||||
import cn.hutool.core.util.RandomUtil;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
@@ -27,7 +28,7 @@ public class IoUtilTest {
|
||||
@Test
|
||||
public void readLinesTest() {
|
||||
try (final BufferedReader reader = ResourceUtil.getUtf8Reader("test_lines.csv")) {
|
||||
IoUtil.readLines(reader, (LineHandler) Assert::assertNotNull);
|
||||
IoUtil.readLines(reader, (SerConsumer<String>) Assert::assertNotNull);
|
||||
} catch (final IOException e) {
|
||||
throw new IORuntimeException(e);
|
||||
}
|
||||
|
Reference in New Issue
Block a user