diff options
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java index 6df39bbe29..16d8e208b6 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -2549,4 +2549,20 @@ public final class TestBugs extends BaseTestBugzillaIssues { assertAlmostEquals(1950, s.getColumnWidth(10), fontAccuracy); assertAlmostEquals(2225, s.getColumnWidth(11), fontAccuracy); } + + @Test + public void bug56450() { + HSSFWorkbook wb = openSample("56450.xls"); + HSSFSheet sheet = wb.getSheetAt(0); + int comments = 0; + for (Row r : sheet) { + for (Cell c : r) { + if (c.getCellComment() != null) { + assertNotNull(c.getCellComment().getString().getString()); + comments++; + } + } + } + assertEquals(0, comments); + } } |