From: Javen O'Neal Date: Thu, 22 Sep 2016 04:37:04 +0000 (+0000) Subject: check column outline level for bug 55076 X-Git-Tag: REL_3_16_BETA1~150 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=67e242cb12197177ba59b66b094bcf106fb5d14e;p=poi.git check column outline level for bug 55076 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1761847 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java index fea0262c41..7fb1b507d5 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java @@ -3110,9 +3110,11 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { sheet.groupColumn(1, 3); sheet.setColumnGroupCollapsed(1, true); - assertEquals(400, sheet.getColumnWidth(1)); - assertEquals(600, sheet.getColumnWidth(2)); - assertEquals(800, sheet.getColumnWidth(3)); + assertEquals(0, sheet.getColumnOutlineLevel(0)); + assertEquals(1, sheet.getColumnOutlineLevel(1)); + assertEquals(1, sheet.getColumnOutlineLevel(2)); + assertEquals(1, sheet.getColumnOutlineLevel(3)); + assertEquals(0, sheet.getColumnOutlineLevel(4)); // none of the columns should be hidden // column group collapsing is a different concept @@ -3120,6 +3122,10 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues { assertFalse("Column " + c, sheet.isColumnHidden(c)); } + assertEquals(400, sheet.getColumnWidth(1)); + assertEquals(600, sheet.getColumnWidth(2)); + assertEquals(800, sheet.getColumnWidth(3)); + wb.close(); } }