aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-11-28 17:59:02 +0000
committerPJ Fanning <fanningpj@apache.org>2022-11-28 17:59:02 +0000
commitf8fd8eb2e314725b59d8efe9552870cfbce4e83e (patch)
tree099816107056620327855e9b44e83da3492e5029
parent185020b538c6a96af973ba70ee85ecda20c41da7 (diff)
downloadpoi-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
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xssf/extractor/TestXSSFEventBasedExcelExtractor.java11
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");
+ }
+ }
}