No tests found Matching Methed

阅读更多
环境说明:spring test + junit 4.12 运行测试用例报错
搜索结果:
1、更换junit版本为: 4.8
2、增加hamcrest-core1.3

      
           org.hamcrest
           hamcrest-core
           1.3
      


junit4.12 依赖 hamcrest1.3, 需要再导入 hamcrest-core 包
链接: http://repo2.maven.org/maven2/org/hamcrest/hamcrest-all/1.3/

你可能感兴趣的:(No tests found Matching Methed)