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

Nick Burch commented on TIKA-1873:
----------------------------------

What changes did you make to the mime types file?

If you alter how files are detected which the unit tests check, then clearly 
those unit tests will (and should!) fail...

> Test Cases failed when tika-mimetypes.xml is changed
> ----------------------------------------------------
>
>                 Key: TIKA-1873
>                 URL: https://issues.apache.org/jira/browse/TIKA-1873
>             Project: Tika
>          Issue Type: Bug
>          Components: parser
>    Affects Versions: 1.13
>            Reporter: Antriksh Saxena
>              Labels: test
>
> The test cases were failing when tika was built after updating the 
> tika-mimetypes.xml. The failure logs are as follows.
> {code}
> TestContainerAwareDetector.testTruncatedFiles:395 
> expected:<application/x-tika-msoffice> but was:<application/msword>
>   TestMimeTypes.testOLE2Detection:138->assertTypeByData:1045 
> expected:<application/[x-tika-msoffice]> but was:<application/[msword]>
>   TestMimeTypes.testOldExcel:251->assertTypeByData:1045 
> expected:<application/[x-tika-msoffice]> but was:<application/[msword]>
>   TestMimeTypes.testVisioDetection:305->assertTypeByNameAndData:1071 
> expected:<application/[vnd.visio]> but was:<application/[msword]>
>   ExcelParserTest.testExcel95:320 expected:<application/[vnd.ms-excel]> but 
> was:<application/[msword]>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to