KickJava   Java API By Example, From Geeks To Geeks.

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


1 package junit.tests.framework;
2
3 import junit.framework.*;
4
5 /**
6  * TestSuite that runs all the sample 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.addTestSuite(TestCaseTest.class);
18         suite.addTest(SuiteTest.suite()); // Tests suite building, so can't use automatic test extraction
19
suite.addTestSuite(TestListenerTest.class);
20         suite.addTestSuite(AssertTest.class);
21         suite.addTestSuite(TestImplementorTest.class);
22         suite.addTestSuite(NoArgTestCaseTest.class);
23         suite.addTestSuite(ComparisonFailureTest.class);
24         suite.addTestSuite(DoublePrecisionAssertTest.class);
25         return suite;
26     }
27     
28 }
Popular Tags