|
||||||||||
| 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.apache.jcs.auxiliary.disk.block.BlockDiskUnitTest
public class BlockDiskUnitTest
Test for the disk access layer of the Block Disk Cache.
| Constructor Summary | |
|---|---|
BlockDiskUnitTest()
Creates the base directory |
|
| Method Summary | |
|---|---|
void |
testCalculateBlocksNeededDouble()
Verify that it says we need two blocks if the total size will fit. |
void |
testWrite_128BlockElement()
Test writing an element that takes 128 blocks. |
void |
testWrite_DoubleBlockElement()
Test writing an element that takes two blocks. |
void |
testWrite_NullBlockElement()
Test writing a null object within a single block size. |
void |
testWrite_SingleBlockElement()
Test writing an element within a single block size. |
void |
testWrite_TwoSingleBlockElements()
Test writing two elements that each fit within a single block size. |
void |
testWriteAndRead_BigString()
Verify that the block disk can handle a big string. |
void |
testWriteAndRead_BigString2()
Verify that the block disk can handle a big string. |
void |
testWriteAndRead_SingleBlockElement()
Test writing and reading an element within a single block size. |
void |
testWriteAndReadMultipleMultiBlockElement_setSize()
Test writing and reading elements that do not fit within a single block. |
void |
testWriteAndReadMultipleMultiBlockElement()
Test writing and reading elements that do not fit within a single block. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 BlockDiskUnitTest()
| Method Detail |
|---|
public void testWrite_NullBlockElement()
throws Exception
Exception
public void testWrite_SingleBlockElement()
throws Exception
Exception
public void testWriteAndRead_SingleBlockElement()
throws Exception
Exception
public void testWrite_TwoSingleBlockElements()
throws Exception
Exception
public void testCalculateBlocksNeededDouble()
throws Exception
Exception
public void testWrite_DoubleBlockElement()
throws Exception
Exception
public void testWrite_128BlockElement()
throws Exception
Exception
public void testWriteAndReadMultipleMultiBlockElement()
throws Exception
Exception
public void testWriteAndReadMultipleMultiBlockElement_setSize()
throws Exception
Exception
public void testWriteAndRead_BigString()
throws Exception
Exception
public void testWriteAndRead_BigString2()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||