KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > tests > AllTests


1 package junit.tests;
2
3 import junit.framework.*;
4
5 /**
6  * TestSuite that runs all the JUnit 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() {
16         TestSuite suite= new TestSuite("Framework Tests");
17         suite.addTest(junit.tests.framework.AllTests.suite());
18         suite.addTest(junit.tests.runner.AllTests.suite());
19         suite.addTest(junit.tests.extensions.AllTests.suite());
20         return suite;
21     }
22 }
Popular Tags