Further Resources
-
JUnit:“一个对 Java 和 JVM 友好的程序员测试框架”。Spring Framework 在其测试套件中使用,并在 Spring TestContext Framework 中支持。
-
JUnit: "A programmer-friendly testing framework for Java and the JVM". Used by the Spring Framework in its test suite and supported in the Spring TestContext Framework.
-
TestNG:一个测试框架,受到 JUnit 的启发,增加了对测试组、数据驱动测试、分布式测试和其他功能的支持。在 Spring TestContext Framework 中支持。
-
TestNG: A testing framework inspired by JUnit with added support for test groups, data-driven testing, distributed testing, and other features. Supported in the Spring TestContext Framework
-
AssertJ:“适用于 Java 的流畅断言”,包括对 Java 8 Lambda、流和其他多种功能的支持。
-
AssertJ: "Fluent assertions for Java", including support for Java 8 lambdas, streams, and numerous other features.
-
Mock Objects:维基百科中的文章。
-
Mock Objects: Article in Wikipedia.
-
MockObjects.com:致力于模拟对象的网站,这是一种在测试驱动开发中改善代码设计的技术。
-
MockObjects.com: Web site dedicated to mock objects, a technique for improving the design of code within test-driven development.
-
Mockito:基于 Test Spy 模式的 Java 模拟库。Spring Framework 在其测试套件中使用。
-
Mockito: Java mock library based on the Test Spy pattern. Used by the Spring Framework in its test suite.
-
EasyMock:Java 库,“通过使用 Java 的代理机制动态生成接口(和通过类扩展的对象)的模拟对象”。
-
EasyMock: Java library "that provides Mock Objects for interfaces (and objects through the class extension) by generating them on the fly using Java’s proxy mechanism."
-
JMock:支持使用模拟对象对 Java 代码进行测试驱动的开发的库。
-
JMock: Library that supports test-driven development of Java code with mock objects.
-
DbUnit:JUnit 扩展(也可与 Ant 和 Maven 一起使用),针对数据库驱动项目,除其他优势外,可以在测试运行之间使你的数据库处于已知状态。
-
DbUnit: JUnit extension (also usable with Ant and Maven) that is targeted at database-driven projects and, among other things, puts your database into a known state between test runs.
-
Testcontainers:支持 JUnit 测试的 Java 库,提供轻量且一次性的常见数据库、Selenium 网页浏览器或其他可以在 Docker 容器中运行的实例。
-
Testcontainers: Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container.
-
The Grinder:Java 负载测试框架。
-
The Grinder: Java load testing framework.
-
SpringMockK:对使用 MockK而不用 Mockito 编写的 Kotlin 中 Spring Boot 集成测试的支持。
-
SpringMockK: Support for Spring Boot integration tests written in Kotlin using MockK instead of Mockito.