PeterAlfredLee opened a new pull request #386: URL: https://github.com/apache/tika/pull/386
1. Fix file exist judgement in method TikaTest#getResourceAsFile In method [TikaTest#getResourceAsFile](https://github.com/apache/tika/blob/4696bd6cbc021c96bc64f63e8cea2ab8f3092ba3/tika-core/src/test/java/org/apache/tika/TikaTest.java#L109), there is a file exist judgement: ``` File file = new File(new File(uri), name); if (file == null) { fail("Unable to find requested file " + name); } ``` The result of `file==null` is always true. Should be replaced with `!file.exists()`. 2. Fix test error in test case SimpleComparerTest Fix file can't find in method `testChinese`. Test file don't exist. Use method `Paths.get`. Fix file name typo in method `testTagsOutOfOrder`. Change file name typo from "file16_badtags.html" to "file16_badTags.html". This typo won't affect `windows` because file name on `windows` can ignore case. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
