Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2195

Consolidate MockParser's service loading file and custom-mimetype entry into tika-core's tests jar

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.15
    • Component/s: None
    • Labels:
      None

      Description

      We duplicate the service loading file and the custom mimetype for MockParser in tika-parsers and tika-server. Let's consolidate those into tika-core/test. This will have the added benefit that integrators can drop the tika-core-X.Y-tests.jar into their classpath and easily unit test their handling of potentially badly behaving parsers.

        Activity

        Hide
        hudson Hudson added a comment -

        SUCCESS: Integrated in Jenkins build Tika-trunk #1156 (See https://builds.apache.org/job/Tika-trunk/1156/)
        TIKA-2195: refactor MockParser to consolidate service loading and custom (tallison: rev 533572b6a7169b8202e591b5d31823dfd6f5c245)

        • (delete) tika-parsers/src/test/resources/META-INF/services/org.apache.tika.parser.Parser
        • (add) tika-core/src/test/resources/META-INF/services/org.apache.tika.parser.Parser
        • (edit) tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes.xml
        • (delete) tika-parsers/src/test/resources/org/apache/tika/mime/custom-mimetypes.xml
        • (delete) tika-server/src/test/resources/mime/custom-mimetypes.xml
        • (edit) CHANGES.txt
        Show
        hudson Hudson added a comment - SUCCESS: Integrated in Jenkins build Tika-trunk #1156 (See https://builds.apache.org/job/Tika-trunk/1156/ ) TIKA-2195 : refactor MockParser to consolidate service loading and custom (tallison: rev 533572b6a7169b8202e591b5d31823dfd6f5c245) (delete) tika-parsers/src/test/resources/META-INF/services/org.apache.tika.parser.Parser (add) tika-core/src/test/resources/META-INF/services/org.apache.tika.parser.Parser (edit) tika-core/src/test/resources/org/apache/tika/mime/custom-mimetypes.xml (delete) tika-parsers/src/test/resources/org/apache/tika/mime/custom-mimetypes.xml (delete) tika-server/src/test/resources/mime/custom-mimetypes.xml (edit) CHANGES.txt

          People

          • Assignee:
            Unassigned
            Reporter:
            tallison@mitre.org Tim Allison
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development