org.jaudiotagger.audio.asf.data
Class ContentDescriptionTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jaudiotagger.AbstractTestCase
              extended by org.jaudiotagger.audio.asf.data.AbstractChunk<T>
                  extended by org.jaudiotagger.audio.asf.data.AbstractMetadataContainer<ContentDescription>
                      extended by org.jaudiotagger.audio.asf.data.ContentDescriptionTest
All Implemented Interfaces:
junit.framework.Test

public class ContentDescriptionTest
extends AbstractMetadataContainer<ContentDescription>

Tests the content description container.

Author:
Christian Laireiter

Constructor Summary
ContentDescriptionTest()
           
 
Method Summary
protected  ContentDescription createChunk(long pos, BigInteger size)
          Creates a chunk instance.
protected  MetadataDescriptor[] createSupportedDescriptors(ContentDescription container)
          This method creates some or all supported descriptors for the given container.
Passed containers will be one of AbstractMetadataContainer.createTestContainers().
protected  ContentDescription[] createTestContainers()
          This method creates container instances which are to be tested.
 void testSetAuthor()
          Test method for ContentDescription.setAuthor(java.lang.String) .
 void testSetComment()
          Test method for ContentDescription.setComment(java.lang.String) .
 void testSetCopyRight()
          Test method for ContentDescription.setCopyright(java.lang.String) .
 void testSetRating()
          Test method for ContentDescription.setRating(java.lang.String) .
 void testSetTitle()
          Test method for ContentDescription.setTitle(java.lang.String) .
 
Methods inherited from class org.jaudiotagger.audio.asf.data.AbstractMetadataContainer
testVariousDescriptorMethods
 
Methods inherited from class org.jaudiotagger.audio.asf.data.AbstractChunk
createAString, testBasicChunkMethods, testChunkCreation
 
Methods inherited from class org.jaudiotagger.AbstractTestCase
assertErrorMessage, copy, copyAudioToTmp, copyAudioToTmp, copyAudioToTmp, setUp
 
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
 

Constructor Detail

ContentDescriptionTest

public ContentDescriptionTest()
Method Detail

createChunk

protected ContentDescription createChunk(long pos,
                                         BigInteger size)
Creates a chunk instance.

Specified by:
createChunk in class AbstractChunk<ContentDescription>
Parameters:
pos - position of chunk.
size - size of chunk
Returns:
Chunk instance.

createSupportedDescriptors

protected MetadataDescriptor[] createSupportedDescriptors(ContentDescription container)
This method creates some or all supported descriptors for the given container.
Passed containers will be one of AbstractMetadataContainer.createTestContainers().

Specified by:
createSupportedDescriptors in class AbstractMetadataContainer<ContentDescription>
Parameters:
container - the container to create test descriptors for.
Returns:
descriptors which are supported by the given container instance.

createTestContainers

protected ContentDescription[] createTestContainers()
This method creates container instances which are to be tested.

Specified by:
createTestContainers in class AbstractMetadataContainer<ContentDescription>
Returns:
all containers that may be tested by the implementation.

testSetAuthor

public void testSetAuthor()
Test method for ContentDescription.setAuthor(java.lang.String) .


testSetComment

public void testSetComment()
Test method for ContentDescription.setComment(java.lang.String) .


testSetCopyRight

public void testSetCopyRight()
Test method for ContentDescription.setCopyright(java.lang.String) .


testSetRating

public void testSetRating()
Test method for ContentDescription.setRating(java.lang.String) .


testSetTitle

public void testSetTitle()
Test method for ContentDescription.setTitle(java.lang.String) .



Copyright © 2005-2009 java.net. All Rights Reserved.