JUnit引入junit-4.12.jar,单元测试报错:java.lang.NoClassDefFoundError: org/hamcrest/SelfDescribing

版本问题:JUnit 4.11以上版本不再包含hamcrest的依赖包 JUnit now uses the latest version of Hamcrest. Thus, you can use all the available matchers and benefit from an improved assertThat which will now print the mismatc
相关文章
相关标签/搜索