Upgraded OpenDocumentMetadataExtracter to new infrastructure.

Added more OpenDocument test documents.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5690 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2007-05-16 10:27:36 +00:00
parent 8c7782027f
commit f03f95325a
14 changed files with 273 additions and 49 deletions

View File

@@ -86,9 +86,16 @@ public abstract class AbstractMetadataExtracterTest extends TestCase
protected void testExtractFromMimetype(String mimetype) throws Exception
{
Map<QName, Serializable> properties = extractFromMimetype(mimetype);
// check
testCommonMetadata(mimetype, properties);
try
{
Map<QName, Serializable> properties = extractFromMimetype(mimetype);
// check
testCommonMetadata(mimetype, properties);
}
catch (FileNotFoundException e)
{
// The test file is not there. We won't fail it.
}
}
protected Map<QName, Serializable> extractFromMimetype(String mimetype) throws Exception