`

No tests found Matching Methed

 
阅读更多
环境说明:spring test + junit 4.12 运行测试用例报错
搜索结果:
1、更换junit版本为: 4.8
2、增加hamcrest-core1.3
<dependencies>
       <dependency>
           <groupId>org.hamcrest</groupId>
           <artifactId>hamcrest-core</artifactId>
           <version>1.3</version>
       </dependency>
</dependencies>
junit4.12 依赖 hamcrest1.3, 需要再导入 hamcrest-core 包
链接:http://repo2.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics