mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix test
This commit is contained in:
@@ -60,7 +60,7 @@ public class TemplateWriterTest {
|
||||
*/
|
||||
@Test
|
||||
void writeNoneOneLineTest() {
|
||||
final ExcelWriter writer = ExcelUtil.getWriter(targetDir + "templateWithFooterNoneOneLine.xlsx");
|
||||
final ExcelWriter writer = ExcelUtil.getWriter("templateWithFooterNoneOneLine.xlsx");
|
||||
//writer.getConfig().setInsertRow(true);
|
||||
|
||||
// 单个替换的变量
|
||||
@@ -73,7 +73,7 @@ public class TemplateWriterTest {
|
||||
writer.writeRow(createRow(), false);
|
||||
}
|
||||
|
||||
//writer.flush(FileUtil.file(targetDir + "templateWithFooterNoneOneLineResult.xlsx"), true);
|
||||
writer.flush(FileUtil.file(targetDir + "templateWithFooterNoneOneLineResult.xlsx"), true);
|
||||
writer.close();
|
||||
}
|
||||
|
||||
|
BIN
hutool-poi/src/test/resources/templateWithFooterNoneOneLine.xlsx
Normal file
BIN
hutool-poi/src/test/resources/templateWithFooterNoneOneLine.xlsx
Normal file
Binary file not shown.
Reference in New Issue
Block a user