KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > nu > xom > tests > XOMTests


1 /* Copyright 2002-2004 Elliotte Rusty Harold
2    
3    This library is free software; you can redistribute it and/or modify
4    it under the terms of version 2.1 of the GNU Lesser General Public
5    License as published by the Free Software Foundation.
6    
7    This library is distributed in the hope that it will be useful,
8    but WITHOUT ANY WARRANTY; without even the implied warranty of
9    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10    GNU Lesser General Public License for more details.
11    
12    You should have received a copy of the GNU Lesser General Public
13    License along with this library; if not, write to the
14    Free Software Foundation, Inc., 59 Temple Place, Suite 330,
15    Boston, MA 02111-1307 USA
16    
17    You can contact Elliotte Rusty Harold by sending e-mail to
18    elharo@metalab.unc.edu. Please include the word "XOM" in the
19    subject line. The XOM home page is located at http://www.xom.nu/
20 */

21
22 package nu.xom.tests;
23
24 import junit.framework.Test;
25 import junit.framework.TestCase;
26 import junit.framework.TestSuite;
27
28 /**
29  * <p>
30  * Collect most of XOM's test cases into a single class,
31  * excepting those tests that are insanely expensive or
32  * that fail due to Java bugs.
33  * </p>
34  *
35  * @author Elliotte Rusty Harold
36  * @version 1.0
37  *
38  */

39 public class XOMTests extends TestCase {
40
41     
42     public XOMTests() {
43         super("All XOM Tests");
44     }
45
46     
47     public static Test suite() {
48         TestSuite result = new TestSuite();
49         result.addTest(new TestSuite(VerifierTest.class));
50         result.addTest(new TestSuite(SubclassTest.class));
51         result.addTest(new TestSuite(NodeFactoryTest.class));
52         result.addTest(new TestSuite(ParentNodeTest.class));
53         result.addTest(new TestSuite(LeafNodeTest.class));
54         result.addTest(new TestSuite(AttributeTest.class));
55         result.addTest(new TestSuite(AttributeTypeTest.class));
56         result.addTest(new TestSuite(ElementTest.class));
57         result.addTest(new TestSuite(CommentTest.class));
58         result.addTest(new TestSuite(ProcessingInstructionTest.class));
59         result.addTest(new TestSuite(DocumentTest.class));
60         result.addTest(new TestSuite(DocTypeTest.class));
61         result.addTest(new TestSuite(AttributesTest.class));
62         result.addTest(new TestSuite(NamespacesTest.class));
63         // Too slow to run routinely
64
// result.addTest(new TestSuite(MegaTest.class));
65
result.addTest(new TestSuite(XMLExceptionTest.class));
66         result.addTest(new TestSuite(ValidityExceptionTest.class));
67         result.addTest(new TestSuite(ParsingExceptionTest.class));
68         result.addTest(new TestSuite(XSLExceptionTest.class));
69         result.addTest(new TestSuite(XIncludeExceptionTest.class));
70         result.addTest(new TestSuite(CDATASectionTest.class));
71         result.addTest(new TestSuite(NodesTest.class));
72         // EBCDIC test fails due to bugs in the Java class library
73
// result.addTest(new TestSuite(EBCDICTest.class));
74
result.addTest(new TestSuite(RoundTripTest.class));
75         result.addTest(new TestSuite(DOMConverterTest.class));
76         result.addTest(new TestSuite(InfoTest.class));
77         result.addTest(new TestSuite(SerializerTest.class));
78         result.addTest(new TestSuite(CanonicalizerTest.class));
79         result.addTest(new TestSuite(BuilderTest.class));
80         result.addTest(new TestSuite(XIncludeTest.class));
81         result.addTest(new TestSuite(SAXConverterTest.class));
82         result.addTest(new TestSuite(BaseURITest.class));
83         result.addTest(new TestSuite(TextTest.class));
84         result.addTest(new TestSuite(XSLTransformTest.class));
85         result.addTest(new TestSuite(EncodingTest.class));
86         return result;
87     }
88
89     
90 }
91
Popular Tags