ExamGecko
Question list
Search
Search

Question 49 - 2V0-72.22 discussion

Report
Export

Which statement about @TestPropertySource annotation is true? (Choose the best answer.)

A.
Java system properties have higher precedence than the properties loaded from @TestPropertySource.
Answers
A.
Java system properties have higher precedence than the properties loaded from @TestPropertySource.
B.
Properties defined @PropertySource are not loaded if @TestPropertySource is used.
Answers
B.
Properties defined @PropertySource are not loaded if @TestPropertySource is used.
C.
@TestPropertySource annotation loads a properties file relative to the root of the project by default.
Answers
C.
@TestPropertySource annotation loads a properties file relative to the root of the project by default.
D.
Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.
Answers
D.
Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.
Suggested answer: D

Explanation:

Reference: https://www.concretepage.com/spring-5/testpropertysource-example-spring-test

asked 16/09/2024
Siegfried Paul
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first