KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > xml > xmlc > ssi > ErrorTests


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

23
24 package org.enhydra.xml.xmlc.ssi;
25
26 import java.lang.reflect.Method JavaDoc;
27
28 import junit.framework.Test;
29
30 import org.enhydra.xml.driver.TestCaseBase;
31
32 /**
33  * Test of SSI parsing error handling.
34  */

35 public class ErrorTests extends TestCaseBase {
36     /** Factory method to create suite of these tests */
37     public static Test suite() {
38         return createSuite(ErrorTests.class, null);
39     }
40     
41     /** Required Constructor */
42     public ErrorTests(Method JavaDoc method) {
43         super(method);
44     }
45
46     /**
47      * Test 1: Error case on SSI directive
48      */

49     public void test1() {
50         SSIRead test = new SSIRead(this);
51     test.runFailTest("illegal-ssi-1.html");
52     }
53
54     /**
55      * Test 2: Error case on SSI directive
56      */

57     public void test2() {
58         SSIRead test = new SSIRead(this);
59         test.runFailTest("illegal-ssi-2.html");
60     }
61
62     /**
63      * Test 3: Error case on SSI directive
64      */

65     public void test3() {
66         SSIRead test = new SSIRead(this);
67     test.runFailTest("illegal-ssi-3.html");
68     }
69
70     /**
71      * Test 4: Error case on SSI directive
72      */

73     public void test4() {
74         SSIRead test = new SSIRead(this);
75     test.runFailTest("illegal-ssi-4.html");
76     }
77
78     /**
79      * Test 5: Error case on SSI directive
80      */

81     public void test5() {
82         SSIRead test = new SSIRead(this);
83     test.runFailTest("illegal-ssi-5.html");
84     }
85
86     /**
87      * Test 6: Error case on SSI directive
88      */

89     public void test6() {
90         SSIRead test = new SSIRead(this);
91     test.runFailTest("illegal-ssi-6.html");
92     }
93
94     /**
95      * Test 7: Error case on SSI directive
96      */

97     public void test7() {
98         SSIRead test = new SSIRead(this);
99     test.runFailTest("illegal-ssi-7.html");
100     }
101
102     /**
103      * Test 8: Error case on SSI directive
104      */

105     public void test8() {
106         SSIRead test = new SSIRead(this);
107     test.runFailTest("illegal-ssi-8.html");
108     }
109
110     /**
111      * Test 9: Error case on SSI directive
112      */

113     public void test9() {
114         SSIRead test = new SSIRead(this);
115     test.runFailTest("illegal-ssi-9.html");
116     }
117
118     /**
119      * Test 10: Error case on SSI directive
120      */

121     public void test10() {
122         SSIRead test = new SSIRead(this);
123     test.runFailTest("illegal-ssi-10.html");
124     }
125
126     /**
127      * Test 11: Error case on SSI directive
128      */

129     public void test11() {
130         SSIRead test = new SSIRead(this);
131     test.runFailTest("illegal-ssi-11.html");
132     }
133
134     /**
135      * Test 12: Error case on SSI directive
136      */

137     public void test12() {
138         SSIRead test = new SSIRead(this);
139     test.runFailTest("illegal-ssi-12.html");
140     }
141 }
142
Popular Tags