KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > mockobjects > examples > calcserver > AllTests


1 package com.mockobjects.examples.calcserver;
2
3 import junit.framework.Test;
4 import junit.framework.TestSuite;
5 import com.mockobjects.util.SuiteBuilder;
6 import com.mockobjects.util.TestCaseMo;
7
8 public class AllTests extends TestCaseMo {
9     private static final Class JavaDoc THIS = AllTests.class;
10
11     public AllTests(String JavaDoc name) {
12         super(name);
13     }
14
15
16     public static void addTestCalculator(TestSuite suite) {
17         suite.addTestSuite(TestCalculator.class);
18     }
19
20
21     public static void addTestCalculatorServlet(TestSuite suite) {
22         suite.addTestSuite(TestCalculatorServlet.class);
23     }
24
25
26     public static void addTestSavingCalculator(TestSuite suite) {
27         suite.addTestSuite(TestSavingCalculator.class);
28     }
29
30
31     public static void main(String JavaDoc[] args) {
32         start(new String JavaDoc[]{ THIS.getName()});
33     }
34
35
36     public static Test suite() {
37         return SuiteBuilder.buildTest(THIS);
38     }
39 }
Popular Tags