01: /* Copyright 2002-2005 Elliotte Rusty Harold
02:
03: This library is free software; you can redistribute it and/or modify
04: it under the terms of version 2.1 of the GNU Lesser General Public
05: License as published by the Free Software Foundation.
06:
07: This library is distributed in the hope that it will be useful,
08: but WITHOUT ANY WARRANTY; without even the implied warranty of
09: 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.TestSuite;
26:
27: /**
28: * <p>
29: * Collect most of XOM's test cases into a single class,
30: * excepting those tests that are insanely expensive or
31: * that fail due to Java bugs.
32: * </p>
33: *
34: * @author Elliotte Rusty Harold
35: * @version 1.1b3
36: *
37: */
38: public class XOMTests {
39:
40: public static Test suite() {
41:
42: TestSuite result = new TestSuite();
43: result.addTest(new TestSuite(IDTest.class));
44: result.addTest(new TestSuite(XOMTestCaseTest.class));
45: result.addTest(new TestSuite(XPathTest.class));
46: result.addTest(new TestSuite(VerifierTest.class));
47: result.addTest(new TestSuite(SubclassTest.class));
48: result.addTest(new TestSuite(NodeFactoryTest.class));
49: result.addTest(new TestSuite(ParentNodeTest.class));
50: result.addTest(new TestSuite(LeafNodeTest.class));
51: result.addTest(new TestSuite(AttributeTest.class));
52: result.addTest(new TestSuite(AttributeTypeTest.class));
53: result.addTest(new TestSuite(ElementTest.class));
54: result.addTest(new TestSuite(CommentTest.class));
55: result.addTest(new TestSuite(ProcessingInstructionTest.class));
56: result.addTest(new TestSuite(DocumentTest.class));
57: result.addTest(new TestSuite(DocTypeTest.class));
58: result.addTest(new TestSuite(AttributesTest.class));
59: result.addTest(new TestSuite(NamespaceNodeTest.class));
60: result.addTest(new TestSuite(NamespacesTest.class));
61: // Too slow to run routinely
62: // result.addTest(new TestSuite(MegaTest.class));
63: result.addTest(new TestSuite(XMLExceptionTest.class));
64: result.addTest(new TestSuite(XPathExceptionTest.class));
65: result.addTest(new TestSuite(ValidityExceptionTest.class));
66: result.addTest(new TestSuite(ParsingExceptionTest.class));
67: result.addTest(new TestSuite(XSLExceptionTest.class));
68: result.addTest(new TestSuite(XIncludeExceptionTest.class));
69: result.addTest(new TestSuite(
70: CanonicalizationExceptionTest.class));
71: result.addTest(new TestSuite(CDATASectionTest.class));
72: result.addTest(new TestSuite(NodesTest.class));
73: // EBCDIC test fails due to bugs in the Java class library
74: // result.addTest(new TestSuite(EBCDICTest.class));
75: result.addTest(new TestSuite(RoundTripTest.class));
76: result.addTest(new TestSuite(DOMConverterTest.class));
77: result.addTest(new TestSuite(InfoTest.class));
78: result.addTest(new TestSuite(SerializerTest.class));
79: result.addTest(new TestSuite(CanonicalizerTest.class));
80: result.addTest(new TestSuite(BuilderTest.class));
81: result.addTest(new TestSuite(XIncludeTest.class));
82: result.addTest(new TestSuite(SAXConverterTest.class));
83: result.addTest(new TestSuite(BaseURITest.class));
84: result.addTest(new TestSuite(TextTest.class));
85: result.addTest(new TestSuite(XSLTransformTest.class));
86: result.addTest(new TestSuite(EncodingTest.class));
87: return result;
88:
89: }
90:
91: }
|