org.jaudiotagger.audio.asf.data
Class MetadataContainerTest

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

public class MetadataContainerTest
extends AbstractMetadataContainer<MetadataContainer>

Implementation of AbstractMetadataContainer which tests MetadataContainer for the container types:

Author:
Christian Laireiter

Constructor Summary
MetadataContainerTest()
           
 
Method Summary
protected  MetadataContainer createChunk(long pos, BigInteger size)
          Creates a chunk instance.
protected  MetadataDescriptor[] createSupportedDescriptors(MetadataContainer container)
          This method creates some or all supported descriptors for the given container.
Passed containers will be one of AbstractMetadataContainer.createTestContainers().
protected  MetadataContainer[] createTestContainers()
          This method creates container instances which are to be tested.
 void testAssertDescriptorString()
          Test method for MetadataContainer.assertDescriptor(java.lang.String) .
 void testAssertDescriptorStringInt()
          Test method for MetadataContainer.assertDescriptor(java.lang.String, int) .
 void testGetValueFor()
          Test method for MetadataContainer.getValueFor(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

MetadataContainerTest

public MetadataContainerTest()
Method Detail

createChunk

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

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

createSupportedDescriptors

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

createTestContainers

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

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

testAssertDescriptorString

public void testAssertDescriptorString()
Test method for MetadataContainer.assertDescriptor(java.lang.String) .


testAssertDescriptorStringInt

public void testAssertDescriptorStringInt()
Test method for MetadataContainer.assertDescriptor(java.lang.String, int) .


testGetValueFor

public void testGetValueFor()
Test method for MetadataContainer.getValueFor(java.lang.String) .



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