From 3c99c70acfdc3c17892b0528655ad64e27ba4db2 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Fri, 28 Dec 2018 19:52:46 +0000 Subject: [PATCH] Add test which verifies that bug 61605 is already fixed git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849878 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/xssf/TestXSSFCloneSheet.java | 10 ++++++++++ test-data/spreadsheet/61605.xlsx | Bin 0 -> 11032 bytes 2 files changed, 10 insertions(+) create mode 100644 test-data/spreadsheet/61605.xlsx diff --git a/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java b/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java index a1b5bd85df..de9b1ba26b 100644 --- a/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java +++ b/src/ooxml/testcases/org/apache/poi/xssf/TestXSSFCloneSheet.java @@ -85,4 +85,14 @@ public class TestXSSFCloneSheet extends BaseTestCloneSheet { wb.close(); } + + @Test + public void test61605() throws IOException { + try (Workbook template_wb = XSSFTestDataSamples.openSampleWorkbook("61605.xlsx")) { + Sheet template_sh = template_wb.getSheetAt(0); + assertNotNull(template_sh); + Sheet source_sh = template_wb.cloneSheet(0); + assertNotNull(source_sh); + } + } } diff --git a/test-data/spreadsheet/61605.xlsx b/test-data/spreadsheet/61605.xlsx new file mode 100644 index 0000000000000000000000000000000000000000..0713daa5998cd104d008298db82a2c6bc65a9095 GIT binary patch literal 11032 zcmeHtby!sE7WdHI-CfcpjYzk&ba%`QFtpNLN-9W)bO{KO($d}1EhQxl-+0cwR}bfW z-}C){?|z;=&)(18Yt6iC)^FACRa1h4#|Iz+kO2Sy4ZtV<3yn7n01$ux0N??TVGX1} zK!_C(Vxr{*wsJM%@N{yd&Vh$z&H}(f-~Zq7Uu=QW#C~8q7q-lK(iK)*9RW8)U7H|4 zhN_us?pcm=&Odm9=&G6`Fpu1IDVlT z-btKVD92Sxe(|5G;gh{5?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