KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > xml > xmlc > html > LargeFileTests


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: LargeFileTests.java,v 1.2 2005/01/26 08:29:25 jkjome Exp $
22  */

23
24 package org.enhydra.xml.xmlc.html;
25 import java.lang.reflect.Method JavaDoc;
26
27 import junit.framework.Test;
28
29 /**
30  * Tests of compiling large files.
31  * - large1.html provided by Guy Smith <guy@pisoftware.com>.
32  * - GctMechCelstran.html and Packaging.html provided by
33  * Henry Ghusakovsky <h.ghusakovsky@belcaf.com>.
34  *
35  * We don't save expected files, as they endup being huge and the main
36  * thing we are checking for is the compiler aborting.
37  */

38 public class LargeFileTests extends HtmlTestCaseBase {
39     /** Factory method to create suite of these tests */
40     public static Test suite() {
41         return createSuite(LargeFileTests.class, null);
42     }
43
44     /** Constructor */
45     public LargeFileTests(Method JavaDoc method) {
46         super(method);
47     }
48
49     /** Create a new test object with diffing disaabled. */
50     protected HtmlBasicTest createTest(String JavaDoc inputDoc) {
51         HtmlBasicTest test = super.createTest(inputDoc);
52         test.disableExpectedFileDiff();
53         return test;
54     }
55
56     /*
57      * Test 1:
58      */

59     public void test1() {
60         HtmlBasicTest test = createTest("large/large1.html");
61         test.basicTest();
62     }
63
64     /*
65      * Test 2:
66      */

67     public void test2() {
68         HtmlBasicTest test = createTest("large/Packaging.html");
69         test.basicTest();
70     }
71
72     /*
73      * Test 3
74      */

75     public void test3() {
76         HtmlBasicTest test = createTest("large/GctMechCelstran.html");
77         test.basicTest();
78     }
79
80     /*
81      * Test 4
82      */

83     public void test4() {
84         HtmlBasicTest test = createTest("large/LargeAtOneLevel.html");
85         test.basicTest();
86     }
87
88     /*
89      * Test 5
90      */

91     public void test5() {
92         HtmlBasicTest test = createTest("large/LargeAtThreeLevels.html");
93         test.basicTest();
94     }
95 }
96
Popular Tags