This commit is contained in:
Looly 2023-05-23 11:53:19 +08:00
parent 8069063e10
commit 3c42b0c164

View File

@ -0,0 +1,34 @@
/*
* Copyright (c) 2023 looly(loolly@aliyun.com)
* Hutool is licensed under Mulan PSL v2.
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at:
* http://license.coscl.org.cn/MulanPSL2
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package org.dromara.hutool.poi.excel;
import org.dromara.hutool.core.lang.Console;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import java.util.List;
public class Issue3118Test {
@Test
@Disabled
void readValueTest() {
final ExcelReader excelReader = ExcelUtil.getReader("d:/test/bug.xlsx");
// 忽略表头直接从第三行开始读取
final List<List<Object>> list = excelReader.read(2);
for (final List<Object> objects : list) {
Console.log(objects);
}
}
}