enhance Csv

This commit is contained in:
Looly
2019-10-29 14:06:32 +08:00
parent 854d7a9380
commit da39e9e646
5 changed files with 316 additions and 136 deletions

View File

@@ -1,13 +1,12 @@
package cn.hutool.core.text.csv;
import java.util.List;
import org.junit.Ignore;
import org.junit.Test;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.lang.Assert;
import cn.hutool.core.util.CharsetUtil;
import org.junit.Ignore;
import org.junit.Test;
import java.util.List;
public class CsvUtilTest {
@@ -21,6 +20,14 @@ public class CsvUtilTest {
Assert.notEmpty(csvRow.getRawList());
}
}
@Test
public void readTest2() {
CsvReader reader = CsvUtil.getReader();
reader.read(FileUtil.getUtf8Reader("test.csv"), (csvRow)->{
Assert.notEmpty(csvRow.getRawList());
});
}
@Test
@Ignore