Update metadata extractors - Outlook, MP3, Mail and PDF improvements, and increase test coverage

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@18454 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Nick Burch
2010-02-04 14:42:45 +00:00
parent f2554d0f63
commit bd1e3edf76
19 changed files with 707 additions and 225 deletions

View File

@@ -22,8 +22,17 @@
* http://www.alfresco.com/legal/licensing" */
package org.alfresco.repo.content.metadata;
import java.io.Serializable;
import java.util.Map;
import org.alfresco.service.namespace.QName;
/**
* Note - this test can sometimes fail if run on its own, as there
* can be a race condition with the OO process. Try running it as
* part of a suite if so, that normally seems to fix it!
*
* @author Jesper Steen Møller
*/
public class OpenOfficeMetadataExtracterTest extends AbstractMetadataExtracterTest
@@ -77,4 +86,18 @@ public class OpenOfficeMetadataExtracterTest extends AbstractMetadataExtracterTe
testExtractFromMimetype(mimetype);
}
}
/**
* Only run the check if we have a connection
* to an OpenOffice instance
*/
protected void testCommonMetadata(String mimetype,
Map<QName, Serializable> properties) {
if(extracter.isConnected()) {
super.testCommonMetadata(mimetype, properties);
}
}
/** Extractor only does the usual basic three properties */
public void testFileSpecificMetadata(String mimetype, Map<QName, Serializable> properties) {}
}