org.jaudiotagger.audio.asf.data
Class ChunkTest

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

public class ChunkTest
extends AbstractChunk<Chunk>

Test for simple Chunk.

Author:
Christian Laireiter

Constructor Summary
ChunkTest()
           
 
Method Summary
protected  Chunk createChunk(GUID chunkGUID, long pos, BigInteger chunkLength)
          Creates a chunk instance.
protected  Chunk createChunk(long pos, BigInteger size)
          Creates a chunk instance.
 Exception failOn(GUID chunkGUID, long pos, BigInteger chunkLength)
          Tests the creation of chunks and should fail.
 void testChunk()
          Test method for Chunk.Chunk(GUID, BigInteger).
 
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

ChunkTest

public ChunkTest()
Method Detail

createChunk

protected Chunk createChunk(GUID chunkGUID,
                            long pos,
                            BigInteger chunkLength)
Creates a chunk instance.

Parameters:
chunkGUID - GUID
pos - position of chunk
chunkLength - length of chunk
Returns:
chunk instance.

createChunk

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

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

failOn

public Exception failOn(GUID chunkGUID,
                        long pos,
                        BigInteger chunkLength)
Tests the creation of chunks and should fail.

Parameters:
chunkGUID - GUID.
pos - position of the chunk
chunkLength - chunk size.
Returns:
The occurred exception on createChunk(GUID,long, BigInteger).

testChunk

public void testChunk()
Test method for Chunk.Chunk(GUID, BigInteger).



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