You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Keith R. Bennett (JIRA)" <ji...@apache.org> on 2007/10/17 21:56:51 UTC
[jira] Created: (TIKA-73) Method that locates test document file
should be available to all test files.
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
Priority: Minor
Fix For: 0.1-incubator
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.
[jira] Commented: (TIKA-73) Method that locates test document file
should be available to all test files.
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Assigned: (TIKA-73) Method that locates test document file
should be available to all test files.
Posted by "Keith R. Bennett (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith R. Bennett reassigned TIKA-73:
------------------------------------
Assignee: Keith R. Bennett
> 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
>
>
> 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.
[jira] Closed: (TIKA-73) Method that locates test document file
should be available to all test files.
Posted by "Keith R. Bennett (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith R. Bennett closed TIKA-73.
--------------------------------
Resolution: Fixed
We will use the getResourceAsStream() approach (see TIKA-74) instead.
> 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.
[jira] Updated: (TIKA-73) Method that locates test document file
should be available to all test files.
Posted by "Keith R. Bennett (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TIKA-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Keith R. Bennett updated TIKA-73:
---------------------------------
Attachment: tika73.patch
Added new class TestUtils, moved TestParsers.getTestFile() to TestUtils.getDocumentTestFile(), changed calls in TestParsers accordingly.
> 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.