mirror of
https://gitee.com/dromara/hutool.git
synced 2025-04-22 12:01:41 +08:00
add test
This commit is contained in:
parent
27e8aa6043
commit
f6b93ef2d5
@ -709,4 +709,16 @@ public class ExcelWriteTest {
|
||||
writer.write(list, true);
|
||||
writer.close();
|
||||
}
|
||||
|
||||
@Test
|
||||
@Ignore
|
||||
public void changeHeaderStyleTest(){
|
||||
final ExcelWriter writer = ExcelUtil.getWriter("d:/test/headerStyle.xlsx");
|
||||
writer.writeHeadRow(ListUtil.of("姓名", "性别", "年龄"));
|
||||
final CellStyle headCellStyle = writer.getStyleSet().getHeadCellStyle();
|
||||
headCellStyle.setFillForegroundColor(IndexedColors.YELLOW1.index);
|
||||
headCellStyle.setFillPattern(FillPatternType.SOLID_FOREGROUND);
|
||||
|
||||
writer.close();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user