org.basex.test.storage
Class BlockAccessTest

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

public final class BlockAccessTest
extends Object

This class tests the update functionality of the BlockStorage.

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

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

Constructor Detail

BlockAccessTest

public BlockAccessTest()
Method Detail

setUpBeforeClass

public static void setUpBeforeClass()
Initializes the test class.


setUp

public void setUp()
Loads the JUnitTest database.


tearDown

public void tearDown()
Drops the JUnitTest database.


testSize

public void testSize()
Tests size of file.


testDeleteOneNode

public void testDeleteOneNode()
Tests delete.


testDeleteAtBeginning

public void testDeleteAtBeginning()
Tests delete at beginning.


testDeleteAtEnd

public void testDeleteAtEnd()
Tests delete at end.


testDeleteFirstBlock

public void testDeleteFirstBlock()
Deletes first block.


testDeleteSecondBlock

public void testDeleteSecondBlock()
Deletes the second block.


testDeleteLastBlock

public void testDeleteLastBlock()
Deletes the last block.


testDeleteSecondBlockAndSurroundingNodes

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


testSimpleInsert

public void testSimpleInsert()
Tests basic insertion.


testInsertMultiple

public void testInsertMultiple()
Tests inserting multiple entries.


testInsertMany

public void testInsertMany()
Tests inserting multiple entries.


testInsertAtBlockBoundary

public void testInsertAtBlockBoundary()
Tests inserting multiple entries.