标题实际上是个不可能完成的任务,因为我们只能用一个Runwith注解,而且只能写一个类,但是我们可以曲线救国,插入下方的5到14行就可以注入了

 @ContextConfiguration(classes = { XXXX.class })
@RunWith(Parameterized.class)
public class XXXXTest { private TestContextManager testContextManager;
@Before
public void setUp() {
testContextManager = new TestContextManager(getClass());
try {
testContextManager.prepareTestInstance(this);
} catch (Exception e) {
e.printStackTrace();
}
} @Test
public void XXXXTest() {
//你的测试逻辑
}
}

最新文章

  1. ElasticSearch中bulkProcesser使用
  2. 一个比较综合的项目--》>图片缓存,下拉刷新等
  3. JavaScript 代码 优化笔记
  4. Qlikview 的权限控制
  5. Linq专题之Lambda表达式
  6. PHP 图片文件上传代码
  7. windows查看端口占用情况及查杀进程
  8. windows下取linux系统里面的文件
  9. RH033读书笔记(2)-Lab 3 Getting Help with Commands
  10. mysq开启慢查询
  11. BZOJ 3786: 星系探索 [伪ETT]
  12. vue-router 通过路由来实现切换头部标题
  13. log4cplus使用(三)-日志重定向
  14. 使用aliyun cli工具快速创建云主机
  15. C# WINFORM 应用程序动态读写xml config文件,获取数
  16. cxgrid回车移到下一个单元格
  17. windows编程经典书籍
  18. springboot整合mybatis将sql打印到日志
  19. 解题:JSOI 2016 最佳团体
  20. python目前安装的包备份

热门文章

  1. 【37.07%】【UESTC 360】Another LCIS
  2. [Angular] Create dynamic content with <tempalte>
  3. [Angular] Wrap a third party lib into service
  4. MySQL 基础查询
  5. Operating system coordinated thermal management
  6. noip刷题记录 20170823
  7. iOS CALayer使用
  8. 《node.js开发指南》第五章与新版Node变化太大的一些问题
  9. android (12) Fragment使用
  10. so文件成品评论【整理】