# 7.9.1. 测试范围依赖

“ `spring-boot-starter-test`Starter”（在`test` `scope`中）包含以下提供的库：

* [JUnit 5](https://junit.org/junit5/)：单元测试 Java 应用程序的事实标准。
* [Spring Test](https://docs.spring.io/spring-framework/docs/5.3.22/reference/html/testing.html#integration-testing) & Spring Boot Test：Spring Boot 应用程序的实用程序和集成测试支持。
* [AssertJ](https://assertj.github.io/doc/)：一个流畅的断言库。
* [Hamcrest](https://github.com/hamcrest/JavaHamcrest)：匹配器对象库（也称为约束或谓词）。
* [Mockito](https://site.mockito.org/)：Java 模拟框架。
* [JSONassert](https://github.com/skyscreamer/JSONassert) : JSON 的断言库。
* [JsonPath](https://github.com/jayway/JsonPath)：JSON 的 XPath。

我们通常发现这些通用库在编写测试时很有用。如果这些库不适合您的需求，您可以添加自己的其他测试依赖项。
