org.basex.test.storage
Class TableBlockAccessTest

java.lang.Object
  extended by org.basex.test.storage.TableBlockAccessTest

public final class TableBlockAccessTest
extends java.lang.Object

This class tests the update functionality of the BlockStorage.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Tim Petrowsky

Constructor Summary
TableBlockAccessTest()
           
 
Method Summary
 void setUp()
          Load the JUnitTest database.
static void setUpBeforeClass()
          Delete old JUnitTest databases.
 void tearDown()
          Drop the JUnitTest database.
 void testDeleteAtBeginning()
          Test delete at beginning.
 void testDeleteAtEnd()
          Test delete at end.
 void testDeleteFirstBlock()
          Delete first block.
 void testDeleteLastBlock()
          Delete the last block.
 void testDeleteOneNode()
          Test delete.
 void testDeleteSecondBlock()
          Delete the second block.
 void testDeleteSecondBlockAndSurroundingNodes()
          Delete the second block with some surrounding nodes.
 void testInsertAtBlockBoundary()
          Test inserting multiple entries.
 void testInsertMany()
          Test inserting multiple entries.
 void testInsertMultiple()
          Test inserting multiple entries.
 void testSimpleInsert()
          Test basic insertion.
 void testSize()
          Test size of file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableBlockAccessTest

public TableBlockAccessTest()
Method Detail

setUpBeforeClass

public static void setUpBeforeClass()
Delete old JUnitTest databases.


setUp

public void setUp()
           throws java.lang.Exception
Load the JUnitTest database.

Throws:
java.lang.Exception - in case of probs

testSize

public void testSize()
Test size of file.


testDeleteOneNode

public void testDeleteOneNode()
Test delete.


testDeleteAtBeginning

public void testDeleteAtBeginning()
Test delete at beginning.


testDeleteAtEnd

public void testDeleteAtEnd()
Test delete at end.


testDeleteFirstBlock

public void testDeleteFirstBlock()
Delete first block.


testDeleteSecondBlock

public void testDeleteSecondBlock()
Delete the second block.


testDeleteLastBlock

public void testDeleteLastBlock()
Delete the last block.


testDeleteSecondBlockAndSurroundingNodes

public void testDeleteSecondBlockAndSurroundingNodes()
Delete the second block with some surrounding nodes.


testSimpleInsert

public void testSimpleInsert()
Test basic insertion.


testInsertMultiple

public void testInsertMultiple()
Test inserting multiple entries.


testInsertMany

public void testInsertMany()
Test inserting multiple entries.


testInsertAtBlockBoundary

public void testInsertAtBlockBoundary()
Test inserting multiple entries.


tearDown

public void tearDown()
              throws java.lang.Exception
Drop the JUnitTest database.

Throws:
java.lang.Exception - in case of problems.