mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
fix test
This commit is contained in:
parent
4e53a9c0b5
commit
24803f8f0c
@ -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.
Loading…
x
Reference in New Issue
Block a user