You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Karl Heinz Marbaise (JIRA)" <ji...@apache.org> on 2008/03/28 01:34:24 UTC

[jira] Updated: (TIKA-74) Test Resources should be loaded by the class loader (e.g. getResourceAsStream()).

     [ https://issues.apache.org/jira/browse/TIKA-74?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Karl Heinz Marbaise updated TIKA-74:
------------------------------------

    Attachment: x.patch

A patch file to fix the issue.

ChangeLog for this:

TIKA-74
 - Now all resources are found and loaded by getResource().
 - Now all unit tests are green without one exception
   TestMimeTypes (testMimeDeterminationForTestDocuments)

 - Moved tika-mimetypes.xml to src/test/resources/org/apache/tika/mime as 
   src/test/resources/org/apache/tika/tika-config.xml 
   as well. Both configuration files are duplicated to
   src/main/resources with their appropiate package structure as well.
   This will result it failure free compiling and unit testing
   in Eclipse as mvn test as well.
 
 - Fixed ExcelParserTest
   - It seemed to be the content is got back as String not as double/float
     so the comparsion which is to used 9 instead of 9.0.

> Test Resources should be loaded by the class loader (e.g. getResourceAsStream()).
> ---------------------------------------------------------------------------------
>
>                 Key: TIKA-74
>                 URL: https://issues.apache.org/jira/browse/TIKA-74
>             Project: Tika
>          Issue Type: Improvement
>          Components: general
>    Affects Versions: 0.1-incubating
>            Reporter: Keith R. Bennett
>            Priority: Minor
>             Fix For: 0.2-incubating
>
>         Attachments: x.patch
>
>
> Resources should be loaded by the class loader rather than assumed to be a file in a certain location.

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