KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > xmldb > xupdate > unittests > BugTests


1 package org.xmldb.xupdate.unittests;
2
3
4 /*
5  * The XML:DB Initiative Software License, Version 1.0
6  *
7  *
8  * Copyright (c) 2000-2003 The XML:DB Initiative. All rights
9  * reserved.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  *
15  * 1. Redistributions of source code must retain the above copyright
16  * notice, this list of conditions and the following disclaimer.
17  *
18  * 2. Redistributions in binary form must reproduce the above copyright
19  * notice, this list of conditions and the following disclaimer in
20  * the documentation and/or other materials provided with the
21  * distribution.
22  *
23  * 3. The end-user documentation included with the redistribution,
24  * if any, must include the following acknowledgment:
25  * "This product includes software developed by the
26  * XML:DB Initiative (http://www.xmldb.org/)."
27  * Alternately, this acknowledgment may appear in the software itself,
28  * if and wherever such third-party acknowledgments normally appear.
29  *
30  * 4. The name "XML:DB Initiative" must not be used to endorse or
31  * promote products derived from this software without prior written
32  * permission. For written permission, please contact info@xmldb.org.
33  *
34  * 5. Products derived from this software may not be called "XML:DB",
35  * nor may "XML:DB" appear in their name, without prior written
36  * permission of the XML:DB Initiative.
37  *
38  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
39  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
40  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
41  * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
42  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
43  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
44  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
45  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
46  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
47  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
48  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
49  * SUCH DAMAGE.
50  * ====================================================================
51  *
52  * This software consists of voluntary contributions made by many
53  * individuals on behalf of the XML:DB Initiative. For more information
54  * on the XML:DB Initiative, please see <http://www.xmldb.org/>.
55  */

56
57 /**
58  *
59  * These unittests demonstrate existing or solved bugs in XUpdate
60  *
61  */

62 public class BugTests extends LexusTestCase {
63
64   public BugTests(String JavaDoc name) {
65     super(name);
66   }
67
68   /**
69    * Update operation containing entity characters bugtest.
70    *
71    * If an element is updated with a String containing entity characters
72    * the results doesn't contain all the parts of the update String. Only
73    * the first part is used.
74    *
75    * Status - SOLVED
76    */

77   public void testUpdateEntitiesBug() throws Exception JavaDoc {
78     mainTest("testUpdateEntitiesBug");
79   }
80
81   /**
82    * Append empty attribute bugtest.
83    *
84    * Appending empty attribute (<xupdate:attribute name="example"/>) results in
85    * a java.util.NoSuchElementException. Appending empty attributes should be possible
86    * since they're legal in XML. The WD is not very clear about this should also be
87    * solved.
88    *
89    * Status - SOLVED
90    */

91   public void testAppendEmptyAttributeBug() throws Exception JavaDoc {
92     mainTest("testAppendEmptyAttributeBug");
93   }
94
95   /**
96    * Append empty text bugtest.
97    *
98    * Appending empty text node (<xupdate:text/>) results in
99    * a java.util.NoSuchElementException. Appending empty text nodes
100    * should be possible and not result in exception.
101    *
102    * Status - SOLVED
103    */

104   public void testAppendEmptyTextBug() throws Exception JavaDoc {
105     mainTest("testAppendEmptyTextBug");
106   }
107 }
108
Popular Tags