org.jaudiotagger.audio.asf.data
Class ChunkContainerTest

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

public class ChunkContainerTest
extends AbstractChunk<ChunkContainer>

Tests the correctness of the ChunkContainer implementation.

Author:
Christian Laireiter

Constructor Summary
ChunkContainerTest()
           
 
Method Summary
protected  ChunkContainer createChunk(long pos, BigInteger size)
          Creates a chunk instance.
protected  ChunkContainer createFilledChunk()
          Creates an instance of ChunkContainer and adds a Chunk for each (and with) GUID of GUID.KNOWN_GUIDS.
 void testAddChunk()
          Test method for ChunkContainer.addChunk(org.jaudiotagger.audio.asf.data.Chunk) .
 void testGetChunks()
          Test method for ChunkContainer.getChunks().
 void testGetFirst()
          Test method for ChunkContainer.getFirst(org.jaudiotagger.audio.asf.data.GUID, java.lang.Class) .
 void testHasChunkByGUID()
          Test method for ChunkContainer.hasChunkByGUID(org.jaudiotagger.audio.asf.data.GUID) .
 
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

ChunkContainerTest

public ChunkContainerTest()
Method Detail

createChunk

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

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

createFilledChunk

protected ChunkContainer createFilledChunk()
Creates an instance of ChunkContainer and adds a Chunk for each (and with) GUID of GUID.KNOWN_GUIDS.

Returns:
container with chunks added.

testAddChunk

public void testAddChunk()
Test method for ChunkContainer.addChunk(org.jaudiotagger.audio.asf.data.Chunk) .


testGetChunks

public void testGetChunks()
Test method for ChunkContainer.getChunks().


testGetFirst

public void testGetFirst()
Test method for ChunkContainer.getFirst(org.jaudiotagger.audio.asf.data.GUID, java.lang.Class) .


testHasChunkByGUID

public void testHasChunkByGUID()
Test method for ChunkContainer.hasChunkByGUID(org.jaudiotagger.audio.asf.data.GUID) .



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