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

标签 eclipse configuration junit hamcrest

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

相关文章:

java - Eclipse:导入中的双分号

java - JUnit 断言 null - 使用 stub 和模拟

java - Selenium 2 : something wrong with “driver. findElement(By....);

Windows 7 上的 Eclipse

c# - 简单 C# 应用程序的配置方法(事件日志记录)

configuration - 如何使用 Spring Cloud 在一个 Spring Boot 应用程序中连接/配置两个 pubsub gcp 项目?

java - OSGi 和 Gemini JPA : Using the Configuration Admin

java - 将新单元格写入工作表 apache poi

spring - 如何在没有 Spring 事务测试支持的情况下编写 Junit4 测试?

android - 导入现有的 Android 项目,eclipse 弹出错误消息