org.alfresco.repo.content.metadata
Class AbstractMetadataExtracterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.metadata.AbstractMetadataExtracterTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
HtmlMetadataExtracterTest, OfficeMetadataExtracterTest, OpenDocumentMetadataExtracterTest, OpenOfficeMetadataExtracterTest, PdfBoxMetadataExtracterTest

public abstract class AbstractMetadataExtracterTest
extends junit.framework.TestCase

See Also:
MetadataExtracter, AbstractMetadataExtracter

Field Summary
protected static org.springframework.context.ApplicationContext ctx
           
protected  DictionaryService dictionaryService
           
protected  MimetypeMap mimetypeMap
           
protected static java.lang.String QUICK_CREATOR
           
protected static java.lang.String QUICK_DESCRIPTION
           
protected static java.lang.String QUICK_TITLE
           
 
Constructor Summary
AbstractMetadataExtracterTest()
           
 
Method Summary
protected  java.util.Map extractFromMimetype(java.lang.String mimetype)
           
protected abstract  MetadataExtracter getExtracter()
           
 void setUp()
          Ensures that the temp locations are cleaned out before the tests start
protected  void testCommonMetadata(java.lang.String mimetype, java.util.Map properties)
           
protected  void testExtractFromMimetype(java.lang.String mimetype)
           
 void testSetUp()
          Check that all objects are present
 void testZeroLengthFile()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ctx

protected static org.springframework.context.ApplicationContext ctx

QUICK_TITLE

protected static final java.lang.String QUICK_TITLE
See Also:
Constant Field Values

QUICK_DESCRIPTION

protected static final java.lang.String QUICK_DESCRIPTION
See Also:
Constant Field Values

QUICK_CREATOR

protected static final java.lang.String QUICK_CREATOR
See Also:
Constant Field Values

mimetypeMap

protected MimetypeMap mimetypeMap

dictionaryService

protected DictionaryService dictionaryService
Constructor Detail

AbstractMetadataExtracterTest

public AbstractMetadataExtracterTest()
Method Detail

getExtracter

protected abstract MetadataExtracter getExtracter()

setUp

public void setUp()
           throws java.lang.Exception
Ensures that the temp locations are cleaned out before the tests start

Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testSetUp

public void testSetUp()
               throws java.lang.Exception
Check that all objects are present

Throws:
java.lang.Exception

testExtractFromMimetype

protected void testExtractFromMimetype(java.lang.String mimetype)
                                throws java.lang.Exception
Throws:
java.lang.Exception

extractFromMimetype

protected java.util.Map extractFromMimetype(java.lang.String mimetype)
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testCommonMetadata

protected void testCommonMetadata(java.lang.String mimetype,
                                  java.util.Map properties)

testZeroLengthFile

public void testZeroLengthFile()
                        throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2005 - 2008 Alfresco Software, Inc. All Rights Reserved.