Broadcom-VMware
2V0-72.22PSE · Question #24
2V0-72.22PSE Question #24: Real Exam Question with Answer & Explanation
The correct answer is C. @SpringBootTest is typically used for integration testing. D. Test methods annotated with @SpringBootTest will recreate the ApplicationContext.. See the full explanation below for the reasoning.
Question
Which two statements are true regarding Spring Boot Testing? (Choose two.)
Options
- A@TestApplicationContext is used to define additional beans or customizations for a test.
- BTest methods in a @SpringBootTest class are transactional by default.
- C@SpringBootTest is typically used for integration testing.
- DTest methods annotated with @SpringBootTest will recreate the ApplicationContext.
- E@SpringBootTest without any configuration classes expects there is only one class annotated
Community Discussion
No community discussion yet for this question.