SOLR-6996: Add a test for ODF files in ExtractingRequestHandlerTest

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1652944 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Uwe Schindler 2015-01-19 09:22:06 +00:00
parent 98d21dfbee
commit a4d74500e7
2 changed files with 10 additions and 0 deletions

View File

@ -181,6 +181,16 @@ public class ExtractingRequestHandlerTest extends SolrTestCaseJ4 {
, "//*/arr[@name='stream_name']/str[.='tiny.txt.gz']"
);
// compressed file
loadLocal("extraction/open-document.odt",
"uprefix", "ignored_",
"fmap.content", "extractedContent",
"literal.id", "open-document");
assertU(commit());
assertQ(req("extractedContent:\"Práctica sobre GnuPG\"")
, "//*[@numFound='1']"
, "//*/arr[@name='stream_name']/str[.='open-document.odt']"
);
}