|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.jaudiotagger.AbstractTestCase
org.jaudiotagger.audio.asf.data.AbstractChunk<T>
T - The chunk class under test.public abstract class AbstractChunk<T extends Chunk>
Specifies methods for creating Chunk objects.
| Constructor Summary | |
|---|---|
AbstractChunk()
|
|
| Method Summary | |
|---|---|
static String |
createAString(long charAmount)
Helper method for creating string with charAmount of 'a's. |
protected abstract T |
createChunk(long pos,
BigInteger size)
Creates a chunk instance. |
private Exception |
failOn(long pos,
BigInteger size)
Invokes createChunk(long, BigInteger) and returns possible
occurred exceptions. |
void |
testBasicChunkMethods()
Tests the correctness of various methods from Chunk directly
after construction. |
void |
testChunkCreation()
Tests chunk creation by using invalid and valid creation arguments on createChunk(long, BigInteger). |
| 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 |
|---|
public AbstractChunk()
| Method Detail |
|---|
public static String createAString(long charAmount)
charAmount of 'a's.
charAmount - amount of characters to include in result.
protected abstract T createChunk(long pos,
BigInteger size)
pos - position of chunk.size - size of chunk
private Exception failOn(long pos,
BigInteger size)
createChunk(long, BigInteger) and returns possible
occurred exceptions.
pos - positionsize - size
public void testBasicChunkMethods()
Chunk directly
after construction.
public void testChunkCreation()
createChunk(long, BigInteger).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||