[ 
https://issues.apache.org/jira/browse/TIKA-73?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535709
 ] 

Jukka Zitting commented on TIKA-73:
-----------------------------------

IMHO we should be using SomeTest.class.getResourceAsStream() to get the test 
documents. See for example o.a.tika.parser.AutoDetectParserTest for an example 
of this.

> Method that locates test document file should be available to all test files.
> -----------------------------------------------------------------------------
>
>                 Key: TIKA-73
>                 URL: https://issues.apache.org/jira/browse/TIKA-73
>             Project: Tika
>          Issue Type: Improvement
>          Components: general
>    Affects Versions: 0.1-incubator
>            Reporter: Keith R. Bennett
>            Assignee: Keith R. Bennett
>            Priority: Minor
>             Fix For: 0.1-incubator
>
>         Attachments: tika73.patch
>
>
> We have a method that gets the location of test document files: 
> TestParser.getTestFile().  I would like to use this method from another test 
> file.  Rather than call a TestParser method, I suggest creating a TestUtils 
> class for things useful to multiple tests.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to