org.basex.test
Class DataUpdateTestDeletes

java.lang.Object
  extended by org.basex.test.DataUpdateTestDeletes

public final class DataUpdateTestDeletes
extends java.lang.Object

This class tests the update features of the Data class.

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

Constructor Summary
DataUpdateTestDeletes()
           
 
Method Summary
 void setUp()
          Create the database.
static void setUpBeforeClass()
          Delete the test-database.
 void tearDown()
          Delete the test-database.
 void testCascadingDelete()
          Test deletion of a node with a child.
 void testCascadingDelete2()
          Test deletion of a node with a child (with text) and attribute.
 void testDeleteAttribute()
          Test deletion of an attribute.
 void testDeleteText()
          For the sake of completeness.
 void testSimpleNodeDelete()
          Test deletion of a simple node.
 void testSize()
          Test for correct data size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataUpdateTestDeletes

public DataUpdateTestDeletes()
Method Detail

setUp

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

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

setUpBeforeClass

public static void setUpBeforeClass()
Delete the test-database.


tearDown

public void tearDown()
              throws java.lang.Exception
Delete the test-database.

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

testCascadingDelete

public void testCascadingDelete()
                         throws java.lang.Exception
Test deletion of a node with a child.

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

testCascadingDelete2

public void testCascadingDelete2()
                          throws java.lang.Exception
Test deletion of a node with a child (with text) and attribute.

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

testDeleteAttribute

public void testDeleteAttribute()
                         throws java.lang.Exception
Test deletion of an attribute.

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

testDeleteText

public void testDeleteText()
                    throws java.lang.Exception
For the sake of completeness. Test deletion of a text-node.

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

testSimpleNodeDelete

public void testSimpleNodeDelete()
                          throws java.lang.Exception
Test deletion of a simple node.

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

testSize

public void testSize()
              throws java.lang.Exception
Test for correct data size.

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