1、继承
extends TestCase
2、
public static void suite() {
TestSuite testSuite = new TestSuite();
testSuite.addTestSuite(TestCycleA.class);
testSuite.addTestSuite(TestCycleI.class);
TestResult run = TestRunner.run(testSuite);
Enumeration<TestFailure> errors = run.errors();
while (errors.hasMoreElements()) {
System.out.println("==============");
System.out.println(errors.nextElement().toString());
System.out.println("==============");
}