junit进行单元测试的时候,报错如下:

method initializationerror not found。

junit.jar已经引入了。

解决方法,下载hamcrest.jar即可。

二者关系可参见:http://blog.csdn.net/hanpompy/article/details/7622251

posted on 2014-04-18 09:09  newyear821  阅读(764)  评论(0编辑  收藏  举报