]> source.dussan.org Git - poi.git/commitdiff
* Some more checks as test still fails on freebsd CI machine
authorDominik Stadler <centic@apache.org>
Thu, 16 Jul 2015 14:17:13 +0000 (14:17 +0000)
committerDominik Stadler <centic@apache.org>
Thu, 16 Jul 2015 14:17:13 +0000 (14:17 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1691407 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java

index a13074760a3bcd5af36584adfc2a534adfdb8649..e1b1a0b68c1a411eafb345c0ee1177459c6209c0 100644 (file)
@@ -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
     }