VMware vRealize Automation 8.x (2022) — Question 39

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

Answer options

Correct answer: C, E

Explanation

Option C is correct because @SpringBootTest is indeed commonly used for integration testing, allowing the entire application context to be loaded. Option E is also correct as @SpringBootTest expects a single @SpringBootConfiguration class when no configuration classes are specified, ensuring proper context setup. The other options are incorrect as they either misrepresent the usage of annotations or the behavior of the testing framework.