是否有推荐的方法将 Hamcrest 集成到 Eclipse 中的 JUnit 配置中?目前 Eclipse 的 JUnit 仅带有 Hamcrest-core。我想编辑该配置以包含 Hamcrest-all。我该怎么做?
最佳答案
我在使用 hamcrest-all 和 junit-dep 时遇到了问题 - 然后你需要 jMock、easymock 和 ant.tasks
如果您只想要更多匹配器,请添加 hamcrest-library(以及您从 Eclipse 获得的 junit 和 hamcrest 核心)
这个问题不应该有“hamcrest”标签吗?
关于eclipse - 将 Hamcrest 集成到 Eclipse 的 JUnit 的推荐方法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1086747/