mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -3,10 +3,6 @@ package cn.hutool.poi.excel;
|
||||
import cn.hutool.poi.excel.cell.CellLocation;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
import org.junit.Ignore;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public class ExcelUtilTest {
|
||||
|
||||
@@ -48,16 +44,10 @@ public class ExcelUtilTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void readAndWriteTest() {
|
||||
String filepath = "d:\\test/select.xls";
|
||||
ExcelWriter writer = ExcelUtil.getWriter(filepath);
|
||||
ExcelReader reader = ExcelUtil.getReader("aaa.xlsx");
|
||||
ExcelWriter writer = reader.getWriter();
|
||||
writer.writeCellValue(1, 2, "设置值");
|
||||
writer.close();
|
||||
ExcelReader reader = ExcelUtil.getReader(filepath);
|
||||
List<Map<String, Object>> map = reader.readAll();
|
||||
reader.close();
|
||||
Assert.assertNotNull(map);
|
||||
Assert.assertFalse(map.isEmpty());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user