mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Complete initial Tika-ification of the metadata extractor
The remaining extractors to be converted to Tika now have been, tests have been included for the image metadata extraction, and some extension points for future extractors have been created. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20669 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -113,19 +113,14 @@ public class MailMetadataExtracterTest extends AbstractMetadataExtracterTest
|
||||
DefaultTypeConverter.INSTANCE.convert(String.class, properties.get(ContentModel.PROP_ADDRESSEE)));
|
||||
|
||||
// Addressees
|
||||
Collection<String> addressees = (Collection<String>)properties.get(ContentModel.PROP_ADDRESSEES);
|
||||
assertTrue(
|
||||
"Property " + ContentModel.PROP_ADDRESSEES + " not found for mimetype " + mimetype,
|
||||
addressees != null
|
||||
properties.get(ContentModel.PROP_ADDRESSEES) != null
|
||||
);
|
||||
assertEquals(
|
||||
"Property " + ContentModel.PROP_ADDRESSEES + " wrong size for mimetype " + mimetype,
|
||||
1,
|
||||
addressees.size());
|
||||
assertEquals(
|
||||
"Property " + ContentModel.PROP_ADDRESSEES + " wrong content for mimetype " + mimetype,
|
||||
"kevin.roast@alfresco.org",
|
||||
DefaultTypeConverter.INSTANCE.convert(String.class, addressees.iterator().next()));
|
||||
DefaultTypeConverter.INSTANCE.convert(String.class, properties.get(ContentModel.PROP_ADDRESSEES)));
|
||||
|
||||
// Subject Line
|
||||
assertEquals(
|
||||
|
Reference in New Issue
Block a user