mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add test
This commit is contained in:
parent
7354e9c5af
commit
e79fabb413
25
hutool-poi/src/test/java/cn/hutool/poi/csv/Issue2783Test.java
Executable file
25
hutool-poi/src/test/java/cn/hutool/poi/csv/Issue2783Test.java
Executable file
@ -0,0 +1,25 @@
|
||||
package cn.hutool.poi.csv;
|
||||
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import cn.hutool.core.lang.func.SerConsumer;
|
||||
import cn.hutool.core.util.CharsetUtil;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
|
||||
public class Issue2783Test {
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void readTest() {
|
||||
// final CsvWriter writer = CsvUtil.getWriter("d:/test/big.csv", CharsetUtil.UTF_8);
|
||||
// for (int i = 0; i < Integer.MAX_VALUE; i++) {
|
||||
// writer.writeLine("aaaa", "bbbb", "ccccc", "dddd");
|
||||
// }
|
||||
// writer.close();
|
||||
|
||||
final CsvReader reader = CsvUtil.getReader(FileUtil.getReader("d:/test/big.csv", CharsetUtil.UTF_8));
|
||||
reader.read((SerConsumer<CsvRow>) strings -> {
|
||||
|
||||
});
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user