REPO-3626: changes after review.

This commit is contained in:
Andreea Nechifor
2018-07-24 14:37:40 +03:00
parent 4d2d4acce7
commit a011c2ca39
3 changed files with 7 additions and 13 deletions

View File

@@ -801,14 +801,9 @@ public class Tika
context.set(DocumentSelector.class, documentSelector);
}
if (pdfParserConfig != null)
if (notExtractBookmarksText.equals(true))
{
if (notExtractBookmarksText != null)
{
pdfParserConfig.setExtractBookmarksText(!notExtractBookmarksText);
}
pdfParserConfig.setExtractBookmarksText(false);
// pdfParserConfig is set to override default settings
context.set(PDFParserConfig.class, pdfParserConfig);
}

View File

@@ -345,7 +345,6 @@ public class TikaControllerTest extends AbstractTransformerControllerTest
@Test
public void pdfToTxtExtractBookmarksTest() throws Exception
{
super.mockTransformCommand(controller, PDF, TXT, MIMETYPE_PDF, true);
mockMvc.perform(mockMvcRequest("/transform", sourceFile, "targetExtension", targetExtension).param("notExtractBookmarksText", "true"))
.andExpect(status().is(200))