Return to site

🍃🎓 SPRING CERTIFICATION QUESTION: spring-boot-starter-test

· spring,java,vcp

Which dependency is excluded from the classpath by spring-boot-starter-test?

* JUnit 4

* JUnit 5

* Spring Test

* None of the mentioned

#spring #certificationquestion #vcp

https://www.udemy.com/course/spring-professional-certification-6-full-tests-2v0-7222-a/?referralCode=04B6ED315B27753236AC

The correct answer is "None of the mentioned."

spring-boot-starter-test is a starter that includes dependencies commonly used for testing in a Spring Boot application.

It brings in various testing libraries to the classpath to facilitate unit and integration testing.

Let's examine each option:

* JUnit 4: This is included as a part of the dependencies brought in by spring-boot-starter-test.

JUnit 4 is a widely used testing framework for Java.

* JUnit 5: Similarly, JUnit 5 is also included as a part of the dependencies.

JUnit 5 is the next version of the JUnit testing framework and is designed to work well with Java 8 and above.

* Spring Test: This is also included in the spring-boot-starter-test dependencies.

Spring Test provides integration testing support for Spring applications.

Given that all three options (JUnit 4, JUnit 5, and Spring Test) are part of the dependencies brought in by spring-boot-starter-test, the correct answer is "None of the mentioned."