KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > puppycrawl > tools > checkstyle > AllTests


1 package com.puppycrawl.tools.checkstyle;
2
3 import junit.framework.Test;
4 import junit.framework.TestSuite;
5
6 /**
7  * Test suite for all tests.
8  * @author Rick Giles
9  * @version 22-Nov-2002
10  */

11 public class AllTests {
12
13     public static void main(String JavaDoc[] args) {
14         junit.textui.TestRunner.run(AllTests.suite());
15     }
16
17     public static Test suite() {
18         TestSuite suite =
19             new TestSuite("Test for com.puppycrawl.tools.checkstyle");
20
21         // test from this package
22
suite.addTest(new TestSuite(CheckerTest.class));
23         suite.addTest(new TestSuite(ConfigurationLoaderTest.class));
24         suite.addTest(new TestSuite(OptionTest.class));
25         suite.addTest(new TestSuite(PackageNamesLoaderTest.class));
26         suite.addTest(new TestSuite(PackageObjectFactoryTest.class));
27         suite.addTest(new TestSuite(StringArrayReaderTest.class));
28         suite.addTest(new TestSuite(UtilsTest.class));
29         suite.addTest(new TestSuite(XMLLoggerTest.class));
30         
31         // tests from sub-packages
32
suite.addTest(com.puppycrawl.tools.checkstyle.api.AllTests.suite());
33         suite.addTest(com.puppycrawl.tools.checkstyle.checks.AllTests.suite());
34         suite.addTest(com.puppycrawl.tools.checkstyle.filters.AllTests.suite());
35         suite.addTest(
36             com.puppycrawl.tools.checkstyle.grammars.AllTests.suite());
37         //$JUnit-END$
38
return suite;
39     }
40 }
41
Popular Tags