org.alfresco.repo.content.metadata
Class MP3MetadataExtracterTest

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.MP3MetadataExtracterTest
All Implemented Interfaces:
junit.framework.Test

public class MP3MetadataExtracterTest
extends AbstractMetadataExtracterTest

Test for the MP3 metadata extraction from id3 tags.


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
MP3MetadataExtracterTest()
           
 
Method Summary
protected  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)
          We don't have quite the usual metadata.
 void testFileSpecificMetadata(java.lang.String mimetype, java.util.Map properties)
          Tests for various MP3 specific bits of metadata
 void testMP3Extraction()
           
 void testSupports()
           
 
Methods inherited from class org.alfresco.repo.content.metadata.AbstractMetadataExtracterTest
assertContains, assertContains, extractFromFile, extractFromMimetype, skipAuthorCheck, skipDescriptionCheck, 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

MP3MetadataExtracterTest

public MP3MetadataExtracterTest()
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

testMP3Extraction

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

testCommonMetadata

protected void testCommonMetadata(java.lang.String mimetype,
                                  java.util.Map properties)
We don't have quite the usual metadata. Tests the descriptions one. Other tests in MP3MetadataExtracterTest.testFileSpecificMetadata(String, Map)

Overrides:
testCommonMetadata in class AbstractMetadataExtracterTest

testFileSpecificMetadata

public void testFileSpecificMetadata(java.lang.String mimetype,
                                     java.util.Map properties)
Tests for various MP3 specific bits of metadata

Specified by:
testFileSpecificMetadata in class AbstractMetadataExtracterTest


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