gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 08:53:46 28 4
gpt4 key购买 nike

是否有推荐的方法将 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/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com