]> source.dussan.org Git - poi.git/commitdiff
[bug-66365] add test for EventBasedExcelExtractor
authorPJ Fanning <fanningpj@apache.org>
Mon, 28 Nov 2022 17:59:02 +0000 (17:59 +0000)
committerPJ Fanning <fanningpj@apache.org>
Mon, 28 Nov 2022 17:59:02 +0000 (17:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905577 13f79535-47bb-0310-9956-ffa450edef68

poi-ooxml/src/test/java/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java

index df801fafbc4fe644b2a43d3a6809157e9455e9ab..accaae3bea5264774d0dd771a2b6d284f44e9adb 100644 (file)
@@ -351,4 +351,15 @@ class TestXSSFEventBasedExcelExtractor {
         ex.close();
 
     }
+
+    @Test
+    void test66365() throws Exception {
+        try (XSSFEventBasedExcelExtractor ex =
+                new XSSFEventBasedExcelExtractor(
+                        XSSFTestDataSamples.openSamplePackage("66365.xlsx"))) {
+            String text = ex.getText();
+            assertContains(text, "Alice\tAlice");
+            assertContains(text, "Bob\tBob");
+        }
+    }
 }