mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +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.write(list, true);
|
||||||
writer.close();
|
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…
x
Reference in New Issue
Block a user