今天用junit运行MyBatis的一个小程序时报错:

我使用的是 junit 4.12版本,
在maven 官网查的结果是:

所以 junit4.12 依赖 hamcrest1.3, 需要再导入 hamcrest-core 包。
junit报错java.lang.Exception: No tests found matching
最新推荐文章于 2024-03-26 10:57:38 发布
本文记录了使用JUnit4.12版本运行MyBatis小程序时遇到的错误,并解释了该错误是由于JUnit4.12依赖于hamcrest1.3但未导入hamcrest-core包导致的。解决办法是在项目中引入hamcrest-core包。
1711

被折叠的 条评论
为什么被折叠?



