SpringBoot文档之测试框架的阅读笔记
-
Testing
SpringBoot提供了组件spring-boot-test
供开发者集成。 -
组件
spring-boot-test
导入了对如下测试工具的依赖。- JUnit 5: The de-facto standard for unit testing Java applications.
- Spring Test & Spring Boot Test: Utilities and integration test support for Spring Boot applications.
- AssertJ: A fluent assertion library.
- Hamcrest: A library of matcher objects (also known as constraints or predicates).
- Mockito: A Java mocking framework.
- JSONassert: An assertion library for JSON.
- JsonPath: XPath for JSON.
- Awaitility: A library for testing asynchronous systems.
-
Testing Spring Applications
使用Spring的DI技术,配合良好的设计、打桩工具,可以提升UT代码的开发和维护效率。 -
Testing Spring Boot Applications
各种外部依赖的打桩方法。
参考资料
本文来自博客园,作者:jackieathome,转载请注明原文链接:https://www.cnblogs.com/jackieathome/p/18377799