org.jaudiotagger.audio.asf.data
Class ContentBrandingTest

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<ContentBranding>
                      extended by org.jaudiotagger.audio.asf.data.ContentBrandingTest
All Implemented Interfaces:
junit.framework.Test

public class ContentBrandingTest
extends AbstractMetadataContainer<ContentBranding>

Tests the content branding container.

Author:
Christian Laireiter

Constructor Summary
ContentBrandingTest()
           
 
Method Summary
protected  ContentBranding createChunk(long pos, BigInteger size)
          Creates a chunk instance.
protected  MetadataDescriptor[] createSupportedDescriptors(ContentBranding container)
          This method creates some or all supported descriptors for the given container.
Passed containers will be one of AbstractMetadataContainer.createTestContainers().
protected  ContentBranding[] createTestContainers()
          This method creates container instances which are to be tested.
 void testIsAddSupported()
          Test method for ContentBranding.isAddSupported(org.jaudiotagger.audio.asf.data.MetadataDescriptor) .
 void testSetBannerImageURL()
          Test method for ContentBranding.setBannerImageURL(String).
 void testSetCopyrightURL()
          Test method for ContentBranding.setCopyRightURL(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

ContentBrandingTest

public ContentBrandingTest()
Method Detail

createChunk

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

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

createSupportedDescriptors

protected MetadataDescriptor[] createSupportedDescriptors(ContentBranding 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<ContentBranding>
Parameters:
container - the container to create test descriptors for.
Returns:
descriptors which are supported by the given container instance.

createTestContainers

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

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

testIsAddSupported

public void testIsAddSupported()
Test method for ContentBranding.isAddSupported(org.jaudiotagger.audio.asf.data.MetadataDescriptor) .


testSetBannerImageURL

public void testSetBannerImageURL()
Test method for ContentBranding.setBannerImageURL(String).


testSetCopyrightURL

public void testSetCopyrightURL()
Test method for ContentBranding.setCopyRightURL(String).



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