diff options
Diffstat (limited to 'src/testcases/org/apache/poi/hssf')
-rw-r--r-- | src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java | 11 |
1 files changed, 11 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 111130e29d..0864549f6c 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java @@ -2227,4 +2227,15 @@ if(1==2) { cell.getCellFormula()); } + public void test49529() throws Exception { + // user code reported in Bugzilla #49529 + HSSFWorkbook workbook = openSample("49529.xls"); + workbook.getSheetAt(0).createDrawingPatriarch(); + // prior to the fix the line below failed with + // java.lang.IllegalStateException: EOF - next record not available + workbook.cloneSheet(0); + + // make sure we are still readable + writeOutAndReadBack(workbook); + } } |