XML:DB Lexus

org.xmldb.xupdate.unittests
Class BugTests

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

public class BugTests
extends LexusTestCase

These unittests demonstrate existing or solved bugs in XUpdate


Constructor Summary
BugTests(java.lang.String name)
           
 
Method Summary
 void testAppendEmptyAttributeBug()
          Append empty attribute bugtest.
 void testAppendEmptyTextBug()
          Append empty text bugtest.
 void testUpdateEntitiesBug()
          Update operation containing entity characters bugtest.
 
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

BugTests

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

testUpdateEntitiesBug

public void testUpdateEntitiesBug()
                           throws java.lang.Exception
Update operation containing entity characters bugtest. If an element is updated with a String containing entity characters the results doesn't contain all the parts of the update String. Only the first part is used. Status - SOLVED

Throws:
java.lang.Exception

testAppendEmptyAttributeBug

public void testAppendEmptyAttributeBug()
                                 throws java.lang.Exception
Append empty attribute bugtest. Appending empty attribute () results in a java.util.NoSuchElementException. Appending empty attributes should be possible since they're legal in XML. The WD is not very clear about this should also be solved. Status - SOLVED

Throws:
java.lang.Exception

testAppendEmptyTextBug

public void testAppendEmptyTextBug()
                            throws java.lang.Exception
Append empty text bugtest. Appending empty text node () results in a java.util.NoSuchElementException. Appending empty text nodes should be possible and not result in exception. Status - SOLVED

Throws:
java.lang.Exception

XML:DB Lexus

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