Spring / Spring Boot
Explain about Spring Boot testing features.
Spring Boot provides a number of utilities and annotations to help to test your application.
Use the spring-boot-starter-test "Starter", which imports both Spring Boot test modules (spring-boot-test and spring-boot-test-autoconfigure) as well as other below libraries.
- spring-boot-test, a spring boot test module that contains core items.
- spring-boot-test-autoconfigure, a spring boot test module that supports auto-configuration for tests.
Other libraries include,
- JUnit 4, the de-facto standard for unit testing Java applications.
- Spring Test & Spring Boot Test provide utilities and integration test support for Spring Boot applications.
- AssertJ, a fluent assertion library.
- Hamcrest, a library of matcher objects (a.k.a constraints or predicates).
- Mockito, Java mocking framework.
- JSONassert, assertion library for JSON.
- JsonPath, XPath for JSON.
More Related questions...