BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

VMware Exam 2V0-72.22 Topic 11 Question 59 Discussion

Actual exam question for VMware's 2V0-72.22 exam
Question #: 59
Topic #: 11
[All 2V0-72.22 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Annalee
21 days ago
As a wise man once said, 'When in doubt, choose option D!' Or was it 'C'? Ah, who cares, just pick one and move on!
upvoted 0 times
Charisse
1 days ago
I agree, let's just pick an option and move on.
upvoted 0 times
...
Veta
4 days ago
I'm not sure, but I'll go with option C for now.
upvoted 0 times
...
Ernie
13 days ago
I think option D is correct, inlined properties can override others.
upvoted 0 times
...
...
Chandra
1 months ago
I'm not sure, but I think C is also a valid option.
upvoted 0 times
...
Elbert
1 months ago
I agree with Claribel, because inlined properties can override properties from files.
upvoted 0 times
...
Ettie
2 months ago
Haha, this question is a real head-scratcher. I'm just going to guess and hope for the best. Maybe I'll get lucky and pick the right answer!
upvoted 0 times
Elmer
13 days ago
C) @TestPropertySource annotation loads a properties file relative to the root of the project by default sounds right to me.
upvoted 0 times
...
Mariann
14 days ago
I'm going with A) Java system properties have higher precedence than the properties loaded from @TestPropertySource.
upvoted 0 times
...
Gwenn
24 days ago
I think D) Inlined properties defined in @TestPropertySource can be used to override properties defined in property files.
upvoted 0 times
...
...
Yuette
2 months ago
B seems wrong to me. If you're using @TestPropertySource, you'd want the properties defined there to take precedence over the ones in @PropertySource.
upvoted 0 times
...
Brendan
2 months ago
I'm going with C. Loading a properties file relative to the project root is the default behavior, and that makes sense for tests.
upvoted 0 times
...
Claribel
2 months ago
I think the answer is D.
upvoted 0 times
...
Shantay
2 months ago
I think the correct answer is D. The @TestPropertySource annotation allows you to override properties defined in property files, which is really handy for testing.
upvoted 0 times
Mi
25 days ago
Definitely. It makes it easier to customize properties specifically for testing scenarios.
upvoted 0 times
...
Alesia
26 days ago
That's good to know. It's really useful for testing purposes.
upvoted 0 times
...
Buck
1 months ago
Yes, you're right. Inlined properties defined in @TestPropertySource can indeed override properties defined in property files.
upvoted 0 times
...
Truman
1 months ago
I think the correct answer is D.
upvoted 0 times
...
...

Save Cancel