This commit is contained in:
Looly
2022-09-29 18:20:19 +08:00
parent e4d7d6b7d4
commit ce11e7147d
23 changed files with 135 additions and 189 deletions

View File

@@ -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);
}