# 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。

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.shiker.tech/spring-boot-can-kao-wen-dang/7.-he-xin-te-xing/7.9.-dan-yuan-ce-shi/7.9.1.-ce-shi-fan-wei-yi-lai.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
