aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-09-14 16:37:29 +0000
committerPJ Fanning <fanningpj@apache.org>2022-09-14 16:37:29 +0000
commitaf6bc9660ff4383bb132cefbe08ce23dab2301bf (patch)
treebfe15fc4f6e81c2bb08540bfd44c6c41c1fee568
parente23d96a6ad282787863bad46b234601b359a9b60 (diff)
downloadpoi-af6bc9660ff4383bb132cefbe08ce23dab2301bf.tar.gz
poi-af6bc9660ff4383bb132cefbe08ce23dab2301bf.zip
[bug-66263] add test case to try to get extra classes into poi-ooxml-lite
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1904079 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java9
-rw-r--r--test-data/document/tika-3816.docxbin0 -> 22374 bytes
2 files changed, 9 insertions, 0 deletions
diff --git a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
index 6adbf31b1e..71120bd7b3 100644
--- a/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
+++ b/poi-ooxml/src/test/java/org/apache/poi/xwpf/extractor/TestXWPFWordExtractor.java
@@ -496,4 +496,13 @@ class TestXWPFWordExtractor {
assertContains(txt, "but a great-looking résumé doesn’t have to be!");
}
}
+
+ @Test
+ void testTika3816() throws IOException {
+ try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("tika-3816.docx");
+ XWPFWordExtractor extractor = new XWPFWordExtractor(doc)) {
+ String txt = extractor.getText();
+ assertContains(txt, "Note\tDetails");
+ }
+ }
}
diff --git a/test-data/document/tika-3816.docx b/test-data/document/tika-3816.docx
new file mode 100644
index 0000000000..54469f6537
--- /dev/null
+++ b/test-data/document/tika-3816.docx
Binary files differ