KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > junit > samples > AllTests


1 package junit.samples;
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     public static Test suite ( ) {
15         TestSuite suite= new TestSuite("All JUnit Tests");
16         suite.addTest(VectorTest.suite());
17         suite.addTest(new TestSuite(junit.samples.money.MoneyTest.class));
18         suite.addTest(junit.tests.AllTests.suite());
19         return suite;
20     }
21 }
Popular Tags