public class OpenOfficeMetadataExtracterTest extends AbstractMetadataExtracterTest
ctx, dictionaryService, mimetypeMap, QUICK_CREATOR, QUICK_CREATOR_EMAIL, QUICK_DESCRIPTION, QUICK_PREVIOUS_AUTHOR, QUICK_TITLE| Constructor and Description |
|---|
OpenOfficeMetadataExtracterTest() |
| Modifier and Type | Method and Description |
|---|---|
protected MetadataExtracter |
getExtracter() |
void |
setUp()
Ensures that the temp locations are cleaned out before the tests start
|
protected boolean |
skipAuthorCheck(java.lang.String mimetype)
This method can be overridden to cause the author/creator property check to be skipped.
|
protected void |
testCommonMetadata(java.lang.String mimetype,
java.util.Map properties)
Only run the check if we have a connection
to an OpenOffice instance
|
void |
testFileSpecificMetadata(java.lang.String mimetype,
java.util.Map properties)
Extractor only does the usual basic three properties
|
void |
testReliability() |
void |
testSupportedMimetypes() |
assertContains, assertContains, extractFromFile, extractFromMimetype, skipDescriptionCheck, testExtractFromMimetype, testSetUp, testZeroLengthFilecountTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toStringassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, formatpublic void setUp()
throws java.lang.Exception
AbstractMetadataExtracterTestsetUp in class AbstractMetadataExtracterTestjava.lang.Exceptionprotected MetadataExtracter getExtracter()
getExtracter in class AbstractMetadataExtracterTestpublic void testReliability()
throws java.lang.Exception
java.lang.Exceptionpublic void testSupportedMimetypes()
throws java.lang.Exception
java.lang.Exceptionprotected void testCommonMetadata(java.lang.String mimetype,
java.util.Map properties)
testCommonMetadata in class AbstractMetadataExtracterTestprotected boolean skipAuthorCheck(java.lang.String mimetype)
AbstractMetadataExtracterTestskipAuthorCheck in class AbstractMetadataExtracterTesttrue to skip the checks, else falsepublic void testFileSpecificMetadata(java.lang.String mimetype,
java.util.Map properties)
testFileSpecificMetadata in class AbstractMetadataExtracterTestCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.