update test

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898945 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-03-15 09:53:26 +00:00
parent 935c8ab06a
commit 5745fc0a68
1 changed files with 3 additions and 0 deletions

View File

@ -2227,6 +2227,9 @@ public final class TestXSSFSheet extends BaseTestXSheet {
void testCustomWidthAndHeight() throws IOException {
try (XSSFWorkbook wb = (XSSFWorkbook) _testDataProvider.openSampleWorkbook("WidthsAndHeights.xlsx")) {
XSSFSheet sheet = wb.getSheetAt(0);
assertEquals(8, sheet.getDefaultColumnWidth());
assertEquals(300, sheet.getDefaultRowHeight());
assertEquals(15.0, sheet.getDefaultRowHeightInPoints(), 0.00001);
assertEquals(5120, sheet.getColumnWidth(0));
assertEquals(2048, sheet.getColumnWidth(1));
assertEquals(0, sheet.getColumnWidth(2));