将Hamcrest集成到Eclipse的JUnit中的推荐方法是什么?

Hos*_*Aly 8 eclipse configuration junit hamcrest

是否有推荐的方法将Hamcrest集成到Eclipse中的JUnit配置中?目前Eclipse的JUnit仅配备Hamcrest-core.我想编辑该配置以包含Hamcrest-all.我该怎么做?

ska*_*man 0

没有什么可以阻止您将 hamcrest 作为 JAR 添加到 Eclipse 项目的构建路径中。如果有一个与 eclipse 一起打包的(我没有意识到有,但很公平),那么它只是为了方便而存在。