KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > susebox > jtopas > JTopasTestSuite


1 /*
2  * JTopasTestSuite.java: JUnit test for the jtopas package
3  *
4  * Copyright (C) 2001 Heiko Blau
5  *
6  * This file belongs to the JTopas test suite.
7  * The JTopas test suite is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or (at your option)
10  * any later version.
11  *
12  * This software is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE.
15  * See the GNU Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License along
18  * with the JTopas test suite. If not, write to the
19  *
20  * Free Software Foundation, Inc.
21  * 59 Temple Place, Suite 330,
22  * Boston, MA 02111-1307
23  * USA
24  *
25  * or check the Internet: http://www.fsf.org
26  *
27  * The JTopas test suite uses the test framework JUnit by Kent Beck and Erich Gamma.
28  * You should have received a copy of their JUnit licence agreement along with
29  * the JTopas test suite.
30  *
31  * We do NOT provide the JUnit archive junit.jar nessecary to compile and run
32  * our tests, since we assume, that You either have it already or would like
33  * to get the current release Yourself.
34  * Please visit either:
35  * http://sourceforge.net/projects/junit
36  * or
37  * http://junit.org
38  * to obtain JUnit.
39  *
40  * Contact:
41  * email: heiko@susebox.de
42  */

43
44 package de.susebox.jtopas;
45
46 //-----------------------------------------------------------------------------
47
// Imports
48
//
49
import junit.framework.Test;
50 import junit.framework.TestCase;
51 import junit.framework.TestSuite;
52
53 import de.susebox.TestUtilities;
54
55
56 //-----------------------------------------------------------------------------
57
// Class JTopasTestSuite
58
//
59

60 /**<p>
61  * This is the test suite for the java package tree. It composes all test classes
62  * in the java subpackages to a single test suite.
63  *</p>
64  *
65  * @author Heiko Blau
66  */

67 public class JTopasTestSuite extends TestCase {
68   
69   //---------------------------------------------------------------------------
70
// main method
71
//
72

73   /**
74    * call this method to invoke the tests
75    */

76   public static void main(String JavaDoc[] args) {
77     String JavaDoc[] tests = { JTopasTestSuite.class.getName() };
78     
79     TestUtilities.run(tests, args);
80   }
81   
82
83   //---------------------------------------------------------------------------
84
// suite method
85
//
86

87   /**
88    * Implementation of the JUnit method <code>suite</code>. For each set of test
89    * properties one or more tests are instantiated.
90    *
91    * @return a test suite
92    */

93   public static Test suite() {
94     TestSuite suite = new TestSuite(JTopasTestSuite.class.getName());
95     
96     suite.addTest(TestTokenizerProperties.suite());
97     suite.addTest(TestTokenizerFlags.suite());
98     suite.addTest(TestMultithreadTokenizerProperties.suite());
99     suite.addTest(TestDifficultSituations.suite());
100     suite.addTest(TestStandardTokenizer.suite());
101     suite.addTest(TestPatternMatching.suite());
102     suite.addTest(TestEmbeddedTokenizer.suite());
103     suite.addTest(TestLargeSource.suite());
104     suite.addTest(TestTextAccess.suite());
105     suite.addTest(TestMultithreadTokenizer.suite());
106     suite.addTest(TestTokenizerCleanup.suite());
107     suite.addTest(TestTokenizerSource.suite());
108     return suite;
109   }
110
111   //---------------------------------------------------------------------------
112
// constructor
113
//
114

115   /**
116    * Constructor
117    */

118   public JTopasTestSuite(String JavaDoc name) {
119     super(name);
120   }
121 }
122
Popular Tags