junit4 指定测试类运行

  • Post author:
  • Post category:其他


package 
import org.junit.runner.JUnitCore;

public class Junit4Suite {
	
	public static void main(String []args){
		JUnitCore.runClasses(
					     ApplicationFactoryTest.class,
				             APSSystemFactoryTest.class,
				             BSMMessSourceFactoryTest.class,
				             CueSystemFactoryTest.class,
				             CuppsSystemFactoryTest.class,
				             GroupFactoryTest.class,
				             MessSourceFactoryTest.class,
				             MPAgentSystemFactoryTest.class,
				             PDCSystemFactoryTest.class,
				             PropUnitFactoryTest.class,
				             ServerFactoryTest.class,
				             SmisFactoryTest.class,
				             SMISMessSourceFactoryTest.class,
				             SystemFactoryTest.class,
				             TCSSystemFactoryTest.class,
				             WorkstationFactoryTest.class
				
		);
	}

}



版权声明:本文为u012219089原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。