Exam 2v0-7222 All QuestionsBrowse all questions from this exam
Question 49

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

    Correct Answer: D

    Inlined properties defined in @TestPropertySource can be used to override properties defined in property files. This means that properties specified directly within the @TestPropertySource annotation will take precedence over those defined in external property files, allowing for easy customization of the test environment.

Discussion
AzuniOption: D

Answer is correct as specified in: https://docs.spring.io/spring-framework/docs/current/javadoc-api/org/springframework/test/context/TestPropertySource.html