1 package test.mockobjects; 2 3 import com.mockobjects.util.SuiteBuilder; 4 import com.mockobjects.util.TestCaseMo; 5 import junit.framework.Test; 6 import junit.framework.TestSuite; 7 8 11 12 public class AllTests extends TestCaseMo { 13 private static final Class THIS = AllTests.class; 14 15 public AllTests(String name) { 16 super(name); 17 } 18 19 public static void addTestAssertMo(TestSuite suite) { 20 suite.addTest(TestAssertMo.suite()); 21 } 22 23 public static void addTestExpectationCounter(TestSuite suite) { 24 suite.addTest(TestExpectationCounter.suite()); 25 } 26 27 public static void addTestExpectationList(TestSuite suite) { 28 suite.addTest(TestExpectationList.suite()); 29 } 30 31 public static void addTestExpectationMap(TestSuite suite) { 32 suite.addTestSuite(TestExpectationMap.class); 33 } 34 35 public static void addTestExpectationSegment(TestSuite suite) { 36 suite.addTest(TestExpectationSegment.suite()); 37 } 38 39 public static void addTestExpectationSet(TestSuite suite) { 40 suite.addTest(TestExpectationSet.suite()); 41 } 42 43 public static void addTestExpectationValue(TestSuite suite) { 44 suite.addTest(TestExpectationValue.suite()); 45 } 46 47 public static void addTestExpectationDoubleValue(TestSuite suite) { 48 suite.addTest(TestExpectationDoubleValue.suite()); 49 } 50 51 public static void addTestMapEntry(TestSuite suite) { 52 suite.addTest(TestMapEntry.suite()); 53 } 54 55 public static void addTestNull(TestSuite suite) { 56 suite.addTestSuite(TestNull.class); 57 } 58 59 public static void addTestVerifier(TestSuite suite) { 60 suite.addTest(TestVerifier.suite()); 61 } 62 63 public static void addTestReturnObjectList(TestSuite suite) { 64 suite.addTestSuite(TestReturnObjectList.class); 65 } 66 67 public static void main(String [] args) { 68 start(new String [] { THIS.getName()}); 69 } 70 71 public static Test suite() { 72 return SuiteBuilder.buildTest(THIS); 73 } 74 } 75 | Popular Tags |