public abstract class StructuredFileTest extends TestCase
StructuredFile
implementations.Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_SIZE
Value for property
blockSize the tests are run with. |
Constructor and Description |
---|
StructuredFileTest() |
Modifier and Type | Method and Description |
---|---|
protected abstract byte[] |
getStructuredData()
Reads the contents of the
StructuredFile implementation
beeing tested as an array of byte. |
protected abstract org.jdtaus.core.io.StructuredFile |
getStructuredFile()
Gets a new instance of the
StructuredFile implementation to test. |
protected void |
runTest() |
protected void |
setUp() |
protected void |
tearDown() |
void |
testDeleteBlocks()
Test of deleteBlocks method of class org.jdtaus.common.io.StructuredFile.
|
void |
testGetBlockCount()
Test of getBlockCount method of class org.jdtaus.common.io.StructuredFile.
|
void |
testGetBlockSize()
Test of getBlockSize method of class org.jdtaus.common.io.StructuredFile.
|
void |
testInsertBlocks()
Test of insertBlocks method of class org.jdtaus.common.io.StructuredFile.
|
void |
testReadWriteBlock()
Test of writeBlock method of class org.jdtaus.common.io.StructuredFile.
|
countTestCases, createResult, getName, run, run, runBare, setName, toString
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, failNotEquals, failNotSame, failSame
public static final int BLOCK_SIZE
blockSize
the tests are run with.public StructuredFileTest()
protected abstract byte[] getStructuredData()
StructuredFile
implementation
beeing tested as an array of byte.StructuredFile
implementation beeing
tested.protected abstract org.jdtaus.core.io.StructuredFile getStructuredFile()
StructuredFile
implementation to test.StructuredFile
implementation to
test.public void testGetBlockSize() throws Exception
Exception
public void testGetBlockCount() throws Exception
Exception
public void testInsertBlocks() throws Exception
Exception
public void testDeleteBlocks() throws Exception
Exception
public void testReadWriteBlock() throws Exception
Exception
Copyright © 2005-2012 jDTAUS. All Rights Reserved.