~ubuntu-branches/ubuntu/precise/xom/precise

« back to all changes in this revision

Viewing changes to src/nu/xom/tests/FastTests.java

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2007-11-25 15:50:40 UTC
  • Revision ID: james.westby@ubuntu.com-20071125155040-r75ikcqf1vu0cei7
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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 the faster of XOM's test cases into a single class.
 
31
 *  This is a faster first check on sanity. Alone this is not enough to
 
32
 *  guarantee that the implementation is correct, but may quickly prove
 
33
 *  that it's incorrect.
 
34
 * </p>
 
35
 * 
 
36
 * @author Elliotte Rusty Harold
 
37
 * @version 1.0
 
38
 *
 
39
 */
 
40
public class FastTests extends TestCase {
 
41
 
 
42
    public FastTests() {
 
43
        super("XOM Tests that run fairly quickly");   
 
44
    }
 
45
 
 
46
    public static Test suite() {
 
47
        TestSuite result = new TestSuite();
 
48
        result.addTest(new TestSuite(VerifierTest.class));
 
49
        result.addTest(new TestSuite(SubclassTest.class));
 
50
        result.addTest(new TestSuite(NodeFactoryTest.class));
 
51
        result.addTest(new TestSuite(ParentNodeTest.class));
 
52
        result.addTest(new TestSuite(LeafNodeTest.class));
 
53
        result.addTest(new TestSuite(AttributeTest.class));
 
54
        result.addTest(new TestSuite(AttributeTypeTest.class));
 
55
        result.addTest(new TestSuite(TextTest.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(ParsingExceptionTest.class));
 
67
        result.addTest(new TestSuite(XSLExceptionTest.class));
 
68
        result.addTest(new TestSuite(XIncludeExceptionTest.class));
 
69
        result.addTest(new TestSuite(CDATASectionTest.class));
 
70
        result.addTest(new TestSuite(NodesTest.class));
 
71
        // EBCDIC test fails due to bugs in the Java class library
 
72
        // result.addTest(new TestSuite(EBCDICTest.class));
 
73
        result.addTest(new TestSuite(RoundTripTest.class));
 
74
        result.addTest(new TestSuite(DOMConverterTest.class));
 
75
        // result.addTest(new TestSuite(SAXConverterTest.class));
 
76
        result.addTest(new TestSuite(XSLTransformTest.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(BaseURITest.class));
 
82
        result.addTest(new TestSuite(EncodingTest.class)); */
 
83
        return result;
 
84
        
 
85
    }
 
86
 
 
87
}