Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)
Which three dependencies are provided by the spring-boot-starter-test? (Choose three.)
The spring-boot-starter-test dependency provides several libraries for testing in Spring Boot applications. Among these, it includes JUnit, which is the standard for unit testing in Java. It also provides Hamcrest, which is a library of matcher objects used for writing test matchers fluently. Additionally, it includes spring-test, which provides utilities and integration test support for Spring Boot applications. These dependencies collectively support the common testing frameworks and tools needed for Spring Boot application testing.
Correct answer: B C D
The spring-boot-starter-test “Starter” (in the test scope) contains the following provided libraries: 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. at https://docs.spring.io/spring-boot/docs/3.2.x/reference/htmlsingle/#features.testing.test-scope-dependencies Correct answer: B C D
Very good explanation. The very same was presented in the VMWare Spring Boot course.
These are correct
These are correct
https://docs.spring.io/spring-boot/docs/1.5.7.RELEASE/reference/html/boot-features-testing.html Test scope dependencies If you use the spring-boot-starter-test ‘Starter’ (in the test scope), you will find the following provided libraries: JUnit — 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.