mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Bump the Tika version for the updated TIKA-784 fix, and add an Alfresco side unit test for this case
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32138 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -78,6 +78,12 @@ public class MimetypeMapContentTest extends TestCase
|
||||
mimetypeService.guessMimetype("image.bmp", openQuickTestFile("quick.bmp"))
|
||||
);
|
||||
|
||||
// Ones where we know about the parent, and Tika knows about the details
|
||||
assertEquals(
|
||||
"application/dita+xml", // Full version: application/dita+xml;format=concept
|
||||
mimetypeService.guessMimetype("concept.dita", openQuickTestFile("quickConcept.dita"))
|
||||
);
|
||||
|
||||
// Alfresco Specific ones, that Tika doesn't know about
|
||||
assertEquals(
|
||||
"application/acp",
|
||||
|
31
source/test-resources/quick/quickConcept.dita
Normal file
31
source/test-resources/quick/quickConcept.dita
Normal file
@@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE concept PUBLIC "-//OASIS//DTD DITA Concept//EN" "http://docs.oasis-open.org/dita/v1.1/OS/dtd/concept.dtd">
|
||||
<concept id="quickConcept">
|
||||
<title>The quick brown fox jumps over the lazy dog</title>
|
||||
<shortdesc>Gym class featuring a brown fox and lazy dog</shortdesc>
|
||||
<prolog>
|
||||
<author>Alfresco Documentation</author>
|
||||
<copyright>
|
||||
<copyryear year="2011"/>
|
||||
<copyrholder>Alfresco Software, Inc.</copyrholder>
|
||||
</copyright>
|
||||
<metadata>
|
||||
<audience experiencelevel="expert" job="Customizing" type="Administrator"/>
|
||||
<category>Testing</category>
|
||||
<keywords>
|
||||
<keyword>Pangram</keyword>
|
||||
<keyword>Fox</keyword>
|
||||
<keyword>Dog</keyword>
|
||||
</keywords>
|
||||
<prodinfo>
|
||||
<prodname>Enterprise</prodname>
|
||||
<vrmlist>
|
||||
<vrm version="3.4.x" release="Enterprise" modification="2011/11/11"/>
|
||||
</vrmlist>
|
||||
</prodinfo>
|
||||
</metadata>
|
||||
</prolog>
|
||||
<conbody>
|
||||
<p>The quick brown fox jumps over the lazy dog</p>
|
||||
</conbody>
|
||||
</concept>
|
Reference in New Issue
Block a user