XML:DB Lexus

org.xmldb.xupdate.unittests
Class XUpdateTests

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.xmldb.xupdate.unittests.LexusTestCase
              extended byorg.xmldb.xupdate.unittests.XUpdateTests
All Implemented Interfaces:
junit.framework.Test

public class XUpdateTests
extends LexusTestCase

These unittests test the basic functionality of XUpdate. The list is not complete yet.


Constructor Summary
XUpdateTests(java.lang.String name)
           
 
Method Summary
 void testAppendAttribute()
           
 void testAppendCDATA()
           
 void testAppendNS()
          Append tests.
 void testInputWithNameSpaces()
          test input file with namespace declaration.
 void testInsertAfter()
           
 void testInsertAfterAttribute()
           
 void testInsertAfterNS()
           
 void testInsertBefore()
          Insert tests.
 void testInsertBeforeAttribute()
           
 void testRemove()
          Remove tests.
 void testRemoveAttribute()
           
 void testRemoveText()
           
 void testRename()
          Rename tests.
 void testRenameAttribute()
           
 void testTextInsertAfter()
           
 void testUpdate()
          Update tests.
 void testUpdateAttribute()
           
 void testUseCases()
          Kimbro staken use-cases.
 void testValueOf()
           
 void testVariable()
          Variable tests.
 
Methods inherited from class org.xmldb.xupdate.unittests.LexusTestCase
mainTest
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, 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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XUpdateTests

public XUpdateTests(java.lang.String name)
Method Detail

testRemove

public void testRemove()
                throws java.lang.Exception
Remove tests. - Deletion of element nodes - Deletion of attribute nodes - Deletion of text nodes should be added - Deletion of CDATA sections should be added - Deletion of processing instructions should be added - Deletion of comments should be added

Throws:
java.lang.Exception

testRemoveAttribute

public void testRemoveAttribute()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testRemoveText

public void testRemoveText()
                    throws java.lang.Exception
Throws:
java.lang.Exception

testInsertBefore

public void testInsertBefore()
                      throws java.lang.Exception
Insert tests. - Insertion of element nodes before element - Insertion of element nodes after element - Insertion of element nodes with a namespace before element should be added - Insertion of element nodes with a namespace after element - Insertion of text nodes before element should be added - Insertion of text nodes after element - Insertion of attribute nodes before element - Insertion of attribute nodes after element - Insertion of attribute nodes with a namespace before element should be added - Insertion of attribute nodes with a namespace after element should be added

Throws:
java.lang.Exception

testInsertAfter

public void testInsertAfter()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testInsertAfterNS

public void testInsertAfterNS()
                       throws java.lang.Exception
Throws:
java.lang.Exception

testTextInsertAfter

public void testTextInsertAfter()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testInsertBeforeAttribute

public void testInsertBeforeAttribute()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testInsertAfterAttribute

public void testInsertAfterAttribute()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testRename

public void testRename()
                throws java.lang.Exception
Rename tests. - Changing name element nodes - Changing name attribute nodes - Changing name element nodes with a namespace should be added - Changing name attribute nodes with a namespace should be added

Throws:
java.lang.Exception

testRenameAttribute

public void testRenameAttribute()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testUpdate

public void testUpdate()
                throws java.lang.Exception
Update tests. - Updating element nodes - Updating attribute nodes - Updating CDATA-sections should be added - Updating processing instructions should be added - Updating element nodes with a namespace should be added - Updating attribute nodes with a namespace should be added

Throws:
java.lang.Exception

testUpdateAttribute

public void testUpdateAttribute()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testAppendNS

public void testAppendNS()
                  throws java.lang.Exception
Append tests. - Appending element nodes should be added - Appending text nodes should be added - Appending attribute nodes - Appending CDATA sections - Appending processing instructions should be added - Appending element nodes with a namespace should be added - Appending attribute nodes with a namespace should be added

Throws:
java.lang.Exception

testAppendAttribute

public void testAppendAttribute()
                         throws java.lang.Exception
Throws:
java.lang.Exception

testAppendCDATA

public void testAppendCDATA()
                     throws java.lang.Exception
Throws:
java.lang.Exception

testVariable

public void testVariable()
                  throws java.lang.Exception
Variable tests.

Throws:
java.lang.Exception

testValueOf

public void testValueOf()
                 throws java.lang.Exception
Throws:
java.lang.Exception

testInputWithNameSpaces

public void testInputWithNameSpaces()
                             throws java.lang.Exception
test input file with namespace declaration. Does XPath correctly select nodes?

Throws:
java.lang.Exception

testUseCases

public void testUseCases()
                  throws java.lang.Exception
Kimbro staken use-cases. http://www.xmldatabases.org/projects/XUpdate-UseCases/

Throws:
java.lang.Exception

XML:DB Lexus

Copyright (c) 2002 The XML:DB Initiative All rights reserved