nerdexam
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)
  • A
    6% (1)
  • B
    17% (3)
  • C
    6% (1)
  • D
    72% (13)

Community Discussion

No community discussion yet for this question.

Full 2V0-72.22 Practice