diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-11-28 17:59:02 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-11-28 17:59:02 +0000 |
commit | f8fd8eb2e314725b59d8efe9552870cfbce4e83e (patch) | |
tree | 099816107056620327855e9b44e83da3492e5029 /poi-ooxml | |
parent | 185020b538c6a96af973ba70ee85ecda20c41da7 (diff) | |
download | poi-f8fd8eb2e314725b59d8efe9552870cfbce4e83e.tar.gz poi-f8fd8eb2e314725b59d8efe9552870cfbce4e83e.zip |
[bug-66365] add test for EventBasedExcelExtractor
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1905577 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml')
-rw-r--r-- | poi-ooxml/src/test/java/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java b/poi-ooxml/src/test/java/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java index df801fafbc..accaae3bea 100644 --- a/poi-ooxml/src/test/java/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java +++ b/poi-ooxml/src/test/java/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java @@ -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"); + } + } } |