junit4同一时候測试多个測试类
2016-02-01 08:47
211 查看
两个分别须要的測试类
TestSuit001
TestSuit002
一个測试套件类
TestSuit
输出结果
TestSuit001
package com.test.junit; import org.junit.Test; public class TestSuit001 { @Test public void test() { System.out.println("test001"); } }
TestSuit002
package com.test.junit; import org.junit.Test; public class TestSuit002 { @Test public void test() { System.out.println("test002"); } }
一个測试套件类
TestSuit
package com.test.junit; import org.junit.runner.RunWith; import org.junit.runners.Suite; @RunWith(Suite.class) @Suite.SuiteClasses({TestSuit001.class, TestSuit002.class}) public class TestSuit { }
输出结果
相关文章推荐
- V4L2框架分析学习
- Struts2的那些小细节
- MySQL的安装
- Python Closure 闭包
- 上周热点回顾(1.25-1.31)
- B. Wet Shark and Bishops(思维)
- Runtime.addShutdownHook用法
- MySQL教程及经常使用命令1.1
- uboot编译
- 如何在 Mutt 邮件客户端中使用密文密码
- 安全测试之传输层保护不足
- cf-A. Wet Shark and Odd and Even(水)
- android 描边
- android-修改TextView中部分文字的颜色
- buildroot linux filesystem 初探
- laravel之模板使用
- ElasticSearch学习
- list<T>作为datagridview的datasource
- J2EE的13个规范之(二) JDBC 及其使用
- Web之旅第四站——CSS(Cascading style Sheet) 层叠样式表