View Javadoc
1   package junit.samples;
2   
3   import junit.framework.Test;
4   import junit.framework.TestSuite;
5   
6   /**
7    * TestSuite that runs all the sample tests
8    */
9   public class AllTests {
10  
11      public static void main(String[] args) {
12          junit.textui.TestRunner.run(suite());
13      }
14  
15      public static Test suite() {
16          TestSuite suite = new TestSuite("All JUnit Tests");
17          suite.addTest(ListTest.suite());
18          suite.addTest(new TestSuite(junit.samples.money.MoneyTest.class));
19          suite.addTest(junit.tests.AllTests.suite());
20          return suite;
21      }
22  }