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
相關文章
相關標籤/搜索