|
|
|
@ -14,26 +14,23 @@ import org.junit.jupiter.api.Test;
|
|
|
|
|
import java.io.File; |
|
|
|
|
|
|
|
|
|
public class Issue3823Test { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//Issue link: https://github.com/alibaba/easyexcel/issues/3823
|
|
|
|
|
@Test |
|
|
|
|
public void test() throws Exception { |
|
|
|
|
public void IssueTest() throws Exception { |
|
|
|
|
|
|
|
|
|
String fileName = TestFileUtil.getPath() + "temp" + File.separator + "issue3823" + File.separator + "bug.xlsx"; |
|
|
|
|
|
|
|
|
|
EasyExcel.read(fileName, new ReadListener() { |
|
|
|
|
@Override |
|
|
|
|
public void invoke(Object data, AnalysisContext context) { |
|
|
|
|
System.out.println(JSON.toJSONString(data)); |
|
|
|
|
} |
|
|
|
|
@Override |
|
|
|
|
public void invoke(Object data, AnalysisContext context) { |
|
|
|
|
System.out.println(JSON.toJSONString(data)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void doAfterAllAnalysed(AnalysisContext context) { |
|
|
|
|
@Override |
|
|
|
|
public void doAfterAllAnalysed(AnalysisContext context) { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}).sheet().doRead(); |
|
|
|
|
} |
|
|
|
|
}).sheet().doRead(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
XSSFWorkbook workbook = new XSSFWorkbook(fileName); |
|
|
|
|