Skip to content

Latest commit

 

History

History
executable file
·
31 lines (16 loc) · 629 Bytes

tools-recommendations.md

File metadata and controls

executable file
·
31 lines (16 loc) · 629 Bytes

工具推荐

JUnit 4

最流行的单元测试框架的最流行的版本,IDE 与工具支持最好,特性简单够用。

Mockito

最流行的 Mock 框架

限制:不能 Mock static、private 以及 final 方法。

Hamcrest

最流行的断言框架,是断言读起来更像一段描述语句,比 JUnit 自己的断言方法提供了更多的常用的不同类型的断言(如字符串、集合等)

Awaitibility

验证异步调用的代码更简单

JsonPath

方便验证 JSON 的内容

Spring Boot Test

适用于 Spring Boot 项目

RestAssured

方便验证 REST 接口