Skip to content

Commit

Permalink
Test password protected files
Browse files Browse the repository at this point in the history
Closes #229.
  • Loading branch information
dadoonet committed Sep 16, 2016
1 parent 8feb196 commit 75f2741
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,14 @@ public void testExtractFromWav() throws IOException {
runSearch("test.wav");
}

/**
* Test case for https://github.com/dadoonet/fscrawler/issues/229
*/
@Test
public void testProtectedDocument229() throws IOException {
runSearch("test-protected.docx");
}

private SearchResponse runSearch(String filename) throws IOException {
return runSearch(filename, null);
}
Expand Down
Binary file added src/test/resources/documents/test-protected.docx
Binary file not shown.

0 comments on commit 75f2741

Please sign in to comment.