KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > xml > xmlc > xml > BugTests


1 /*
2  * Enhydra Java Application Server Project
3  *
4  * The contents of this file are subject to the Enhydra Public License
5  * Version 1.1 (the "License"); you may not use this file except in
6  * compliance with the License. You may obtain a copy of the License on
7  * the Enhydra web site ( http://www.enhydra.org/ ).
8  *
9  * Software distributed under the License is distributed on an "AS IS"
10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
11  * the License for the specific terms governing rights and limitations
12  * under the License.
13  *
14  * The Initial Developer of the Enhydra Application Server is Lutris
15  * Technologies, Inc. The Enhydra Application Server and portions created
16  * by Lutris Technologies, Inc. are Copyright Lutris Technologies, Inc.
17  * All Rights Reserved.
18  *
19  * Contributor(s):
20  *
21  * $Id: BugTests.java,v 1.2 2005/01/26 08:29:25 jkjome Exp $
22  */

23
24 package org.enhydra.xml.xmlc.xml;
25 import java.lang.reflect.Method JavaDoc;
26
27 import junit.framework.Test;
28
29 /**
30  * Regression tests for various bugs.
31  */

32 public class BugTests extends XmlTestCaseBase {
33     /** Factory method to create suite of these tests */
34     public static Test suite() {
35         return createSuite(BugTests.class, null);
36     }
37     
38     /** Constructor */
39     public BugTests(Method JavaDoc method) {
40         super(method);
41     }
42
43     /**
44      * Test 1: Handling of entities in attributes. This is currently
45      * broken in Xerces, we can't get an attribute-value unexpanded.
46      */

47     public void test1() {
48         XmlBasicTest test
49             = new XmlBasicTest(this, getInputFile("simple/entityAttr.xml"), null);
50         test.basicTest();
51     }
52
53     /**
54      * Test 2: Handling of entities in attributes. This is currently
55      * broken in Xerces, we can't get an attribute-value unexpanded.
56      */

57     public void test2() {
58         XmlBasicTest test
59             = new XmlBasicTest(this, getInputFile("voxml/testGreetUser.vxl"),
60                                getInputFile("voxml/VoxML.dtd"));
61         test.basicTest();
62     }
63
64 }
65
Popular Tags