test for TIKA-2163

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1903777 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-08-30 11:44:27 +00:00
parent 59f51987eb
commit 4df0415621
2 changed files with 9 additions and 0 deletions

View File

@ -487,4 +487,13 @@ class TestXWPFWordExtractor {
assertEquals( "The following word is: CAPITALIZED.", txt.trim());
}
}
@Test
void testTika2163() throws IOException {
try (XWPFDocument doc = XWPFTestDataSamples.openSampleDocument("ChronologicalResume.dotx");
XWPFWordExtractor extractor = new XWPFWordExtractor(doc)) {
String txt = extractor.getText();
assertContains(txt, "but a great-looking résumé doesnt have to be!");
}
}
}

Binary file not shown.