Broadcom-VMware
2V0-72.22 · Question #24
Which two statements are true regarding Spring Boot Testing? (Choose two.)
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
How the community answered
(26 responses)- A4% (1)
- B8% (2)
- C85% (22)
- E4% (1)
Community Discussion
No community discussion yet for this question.