1 /** 2 * 3 */ 4 package CRM; 5 6 import static org.junit.Assert.*; 7 8 import org.junit.Test; 9 import org.junit.runner.RunWith; 10 import org.junit.runners.Suite; 11 import org.junit.runners.Suite.SuiteClasses; 12 13 /** 14 * @author Lee 15 * 16 */ 17 @RunWith(Suite.class) 18 @Suite.SuiteClasses({ 19 TestCase.class, 20 TestCase1.class, 21 TestCase2.class, 22 TestCase3.class, 23 TestCase4.class} 24 ) 25 26 public class TestSuite { 27 /* 28 * 1.测试套件就是组织测试类一起运行的 29 * 30 * 写一个作为测试套件的入口类,这个类里不包含其他的方法 31 * 更改测试运行器Suite.class 32 * 将要测试的类作为数组传入到Suite.SuiteClasses({}) 33 */ 34 }