KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > j2biz > pencil > test > AllTests


1 /*
2  * Copyright 2004 Andreas Siebert (j2biz community)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7
8  * http://www.apache.org/licenses/LICENSE-2.0
9
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package com.j2biz.pencil.test;
17
18 import com.j2biz.pencil.test.compiler.RemoveLastStringStrategyTest;
19 import com.j2biz.pencil.test.el.TemplateClassFunctionTestCase;
20 import com.j2biz.pencil.test.el.TemplateParserTestCase;
21 import com.j2biz.pencil.test.output.ConfigManagerTestCase;
22
23 import junit.framework.Test;
24 import junit.framework.TestSuite;
25
26 /**
27  * @author andrej
28  *
29  * To change the template for this generated type comment go to Window -
30  * Preferences - Java - Code Generation - Code and Comments
31  */

32 public class AllTests {
33
34     public static Test suite() throws Exception JavaDoc {
35
36         TestSuite suite = new TestSuite("Test for com.j2biz.pencil.test");
37
38         // $JUnit-BEGIN$
39
try {
40             suite.addTestSuite(ConfigManagerTestCase.class);
41             suite.addTestSuite(TemplateParserTestCase.class);
42             suite.addTestSuite(TemplateClassFunctionTestCase.class);
43             suite.addTestSuite( RemoveLastStringStrategyTest.class );
44
45             EnhancedClassesTestCase.executeEnhancedApplication();
46             EnhancedClassesTestCase.executeOriginalApplikation();
47             
48             suite.addTestSuite(EnhancedClassesTestCase.class);
49         } catch (Exception JavaDoc x) {
50             System.out.println("Test missed. exception: " + x);
51             x.printStackTrace();
52         }
53
54         // $JUnit-END$
55

56         return suite;
57     }
58 }
Popular Tags