aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org
diff options
context:
space:
mode:
authorDominik Stadler <centic@apache.org>2015-07-16 14:17:13 +0000
committerDominik Stadler <centic@apache.org>2015-07-16 14:17:13 +0000
commit7df622aacdb57f613fbb75d1492606b50331a475 (patch)
treeccca36f53f113b5f8cc26d54652b99cc61259182 /src/testcases/org
parent59a0a415b8f6ac0d526a63b956c89ff97280071b (diff)
downloadpoi-7df622aacdb57f613fbb75d1492606b50331a475.tar.gz
poi-7df622aacdb57f613fbb75d1492606b50331a475.zip
* Some more checks as test still fails on freebsd CI machine
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691407 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org')
-rw-r--r--src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java
index a13074760a..e1b1a0b68c 100644
--- a/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java
+++ b/src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java
@@ -361,6 +361,9 @@ public abstract class BaseTestBugzillaIssues {
Assume.assumeTrue("Cannot verify auoSizeColumn() because the necessary Fonts are not installed on this machine: " + font,
SheetUtil.canComputeColumnWidht(font));
+ double width = SheetUtil.getCellWidth(cell0, 8, null, false);
+ assertTrue("Expected to have cell width > 0 after auto-size, but had " + width, width > 0);
+
assertEquals(255*256, sheet.getColumnWidth(0)); // maximum column width is 255 characters
sheet.setColumnWidth(0, sheet.getColumnWidth(0)); // Bug 506819 reports exception at this point
}