Broadcom-VMware
2V0-72.22 · Question #19
Which statement about @TestPropertySource annotation is true? (Choose the best answer.)
The correct answer is D. Inlined properties defined in @TestPropertySource can be used to override properties defined. See the full explanation below for the reasoning.
Question
Which statement about @TestPropertySource annotation is true? (Choose the best answer.)
Options
- AJava system properties have higher precedence than the properties loaded from
- BProperties defined @PropertySource are not loaded if @TestPropertySource is used.
- C@TestPropertySource annotation loads a properties file relative to the root of the project by
- DInlined properties defined in @TestPropertySource can be used to override properties defined
How the community answered
(18 responses)- A6% (1)
- B17% (3)
- C6% (1)
- D72% (13)
Community Discussion
No community discussion yet for this question.