Repository: tika Updated Branches: refs/heads/master e8bf98504 -> 2e325cb71
TIKA-2170 -- fix unit test to allow for different exceptions to be thrown for losing connection to server Project: http://git-wip-us.apache.org/repos/asf/tika/repo Commit: http://git-wip-us.apache.org/repos/asf/tika/commit/2e325cb7 Tree: http://git-wip-us.apache.org/repos/asf/tika/tree/2e325cb7 Diff: http://git-wip-us.apache.org/repos/asf/tika/diff/2e325cb7 Branch: refs/heads/master Commit: 2e325cb7103f3e7090433264a52f9787200c526e Parents: e8bf985 Author: tballison <[email protected]> Authored: Thu Nov 10 09:50:13 2016 -0500 Committer: tballison <[email protected]> Committed: Thu Nov 10 09:50:13 2016 -0500 ---------------------------------------------------------------------- tika-core/src/test/java/org/apache/tika/fork/ForkParserTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/tika/blob/2e325cb7/tika-core/src/test/java/org/apache/tika/fork/ForkParserTest.java ---------------------------------------------------------------------- diff --git a/tika-core/src/test/java/org/apache/tika/fork/ForkParserTest.java b/tika-core/src/test/java/org/apache/tika/fork/ForkParserTest.java index 590aa80..5883c75 100644 --- a/tika-core/src/test/java/org/apache/tika/fork/ForkParserTest.java +++ b/tika-core/src/test/java/org/apache/tika/fork/ForkParserTest.java @@ -213,7 +213,7 @@ public class ForkParserTest { try { forkParser.parse(new ByteArrayInputStream(sleepCommand.getBytes(StandardCharsets.UTF_8)), o, m, c); fail("Should have thrown exception"); - } catch (IOException e) { + } catch (IOException|TikaException e) { assertTrue("should have thrown IOException lost connection", true); } }
