org.alfresco.repo.content.metadata
Class PdfBoxMetadataExtracterTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.alfresco.repo.content.metadata.AbstractMetadataExtracterTest
              extended by org.alfresco.repo.content.metadata.PdfBoxMetadataExtracterTest
All Implemented Interfaces:
junit.framework.Test

public class PdfBoxMetadataExtracterTest
extends AbstractMetadataExtracterTest

See Also:
PdfBoxMetadataExtracter

Field Summary
 
Fields inherited from class org.alfresco.repo.content.metadata.AbstractMetadataExtracterTest
ctx, dictionaryService, mimetypeMap, QUICK_CREATOR, QUICK_CREATOR_EMAIL, QUICK_DESCRIPTION, QUICK_PREVIOUS_AUTHOR, QUICK_TITLE
 
Constructor Summary
PdfBoxMetadataExtracterTest()
           
 
Method Summary
protected  MetadataExtracter getExtracter()
           
 void setUp()
          Ensures that the temp locations are cleaned out before the tests start
 void testAiExtraction()
          This test method extracts metadata from an Adobe Illustrator file (which in recent versions is a pdf file).
 void testDateConversion()
          Test that will show when the workaround is in place.
protected  void testFileSpecificMetadata(java.lang.String mimetype, java.util.Map properties)
          We can also return a created date
 void testPdfExtraction()
           
 void testSupports()
           
 
Methods inherited from class org.alfresco.repo.content.metadata.AbstractMetadataExtracterTest
assertContains, assertContains, extractFromFile, extractFromMimetype, skipAuthorCheck, skipDescriptionCheck, testCommonMetadata, testExtractFromMimetype, testSetUp, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PdfBoxMetadataExtracterTest

public PdfBoxMetadataExtracterTest()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Description copied from class: AbstractMetadataExtracterTest
Ensures that the temp locations are cleaned out before the tests start

Overrides:
setUp in class AbstractMetadataExtracterTest
Throws:
java.lang.Exception

getExtracter

protected MetadataExtracter getExtracter()
Specified by:
getExtracter in class AbstractMetadataExtracterTest
Returns:
Returns the same transformer regardless - it is allowed

testSupports

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

testPdfExtraction

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

testAiExtraction

public void testAiExtraction()
                      throws java.lang.Exception
This test method extracts metadata from an Adobe Illustrator file (which in recent versions is a pdf file).

Throws:
java.lang.Exception
Since:
3.5.0

testFileSpecificMetadata

protected void testFileSpecificMetadata(java.lang.String mimetype,
                                        java.util.Map properties)
We can also return a created date

Specified by:
testFileSpecificMetadata in class AbstractMetadataExtracterTest

testDateConversion

public void testDateConversion()
                        throws java.lang.Exception
Test that will show when the workaround is in place.

Throws:
java.lang.Exception


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