KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > tests > extensions > AllTests


1 package junit.tests.extensions;
2
3 import junit.framework.*;
4
5 /**
6  * TestSuite that runs all the extension tests
7  *
8  */

9 public class AllTests {
10
11     public static void main(String JavaDoc[] args) {
12         junit.textui.TestRunner.run(suite());
13     }
14     
15     public static Test suite() { // Collect tests manually because we have to test class collection code
16
TestSuite suite= new TestSuite("Framework Tests");
17         suite.addTestSuite(ExtensionTest.class);
18         suite.addTestSuite(ExceptionTestCaseTest.class);
19         suite.addTestSuite(ActiveTestTest.class);
20         suite.addTestSuite(RepeatedTestTest.class);
21         return suite;
22     }
23 }
Popular Tags