2v0-7222 Exam QuestionsBrowse all questions from this exam

2v0-7222 Exam - Question 54


Which two statements are true regarding Spring Boot Testing? (Choose two.)

Show Answer
Correct Answer: CDE

Spring Boot Testing involves specific annotations and configurations to facilitate testing. @SpringBootTest is commonly used for integration testing because it loads the full application context. Additionally, @SpringBootTest without any configuration classes assumes there is only one class annotated with @SpringBootConfiguration in the application context. This ensures that the test class can properly load the application's context.

Discussion

4 comments
Sign in to comment
asaladino75Option: E
Mar 2, 2024

I think the E answere is correct. see https://docs.spring.io/spring-boot/docs/current/api/org/springframework/boot/test/context/SpringBootTest.html the @SpringBootTest is not applicable at method level.

Tolo01Options: AC
Aug 2, 2023

I think A and C are the best answer

nesreenmhd123
Oct 9, 2023

There is no @TestApplicationContext annotation in Spring Testing.

GlothanOptions: CD
Dec 20, 2023

A is wrong: there is no @TestApplicationContext annotation in Spring Testing.

2211094Options: BC
Jun 16, 2024

BC is correct answer.