mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
package cn.hutool.poi.excel;
|
||||
|
||||
import cn.hutool.core.lang.Console;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class IssueI5Q1TWTest {
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void readTest(){
|
||||
final ExcelReader reader = ExcelUtil.getReader("d:/test/I5Q1TW.xlsx");
|
||||
final List<List<Object>> read = reader.read();
|
||||
Console.log(reader.readCellValue(0, 0));
|
||||
public void readTest() {
|
||||
final ExcelReader reader = ExcelUtil.getReader("I5Q1TW.xlsx");
|
||||
|
||||
// 自定义时间格式1
|
||||
Assert.assertEquals("18:56", reader.readCellValue(0, 0).toString());
|
||||
|
||||
// 自定义时间格式2
|
||||
Assert.assertEquals("18:56", reader.readCellValue(1, 0).toString());
|
||||
}
|
||||
}
|
||||
|
BIN
hutool-poi/src/test/resources/I5Q1TW.xlsx
Normal file
BIN
hutool-poi/src/test/resources/I5Q1TW.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user