General dependencies
Dependencies required for running tests should be in the project configuration. Additional libraries may also be necessary depending on the project under test. For version information, see Specs & Reqs.
Dependency | Description |
---|---|
Test Framework | |
Surefire Plugin
| When using Maven and junit-jupiter-engine. |
JUnit Launcher
| When using junit-jupiter-engine, unless using Maven, Spring, or Spring Boot. |
Spring Boot Test
| When using Spring Boot ( |
Spring Test
| When using Spring ( |
Mockito | For mocking using Mockito. |
Other dependencies listed below may be needed, if they are transitive dependencies of your project. If one of these dependencies is required but missing, tests will be generated for some classes but not others. A message will appear in the console output indicating a missing dependency. For version information, see Specs & Reqs.
Dependency |
---|
Java Servlet API
|
JSR107 API and SPI
|
Spring Boot Starter Test
|
Spring Security Config
|
Spring Web MVC
|
Last updated