mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-08-18 20:38:02 +08:00
add test
This commit is contained in:
@@ -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();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user