Deal of The Day! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
VMware Discussions
Exam 2V0-72.22 Topic 9 Question 54 Discussion
VMware Exam 2V0-72.22 Topic 9 Question 54 Discussion
Actual exam question for VMware's 2V0-72.22 exam
Question #: 54
Topic #: 9
[All 2V0-72.22 Questions]
Refer to the exhibit.
What statement is true about @DirtiesContext?
A
It will close the existing cached ApplicationContext and recreate a new one before the test method.
B
It will close the existing cached ApplicationContext and recreate a new one after the test method.
C
It will keep the existing cached ApplicationContext, all changes to Spring managed beans will be reverted after the test.
D
It will recreate only the Spring managed beans that are modified inside the test method.
Show Suggested Answer
Hide Answer
Suggested Answer:
A, B
by
Christiane
at
Aug 03, 2024, 10:43 PM
Limited Time Offer
25%
Off
Get Premium 2V0-72.22 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Lizette
1 days ago
Hmm, this is a tricky one. I'm leaning towards D, since that would be the most targeted approach. But I better double-check the docs to be sure.
upvoted
0
times
...
Lynelle
2 days ago
This question is a real dirt-y one! I'll have to go with B, though. Recreating the context after the test is the safest way to ensure a clean slate.
upvoted
0
times
...
Kati
5 days ago
But A makes more sense because it mentions recreating the ApplicationContext before the test method.
upvoted
0
times
...
Miles
8 days ago
I'm going with C. It seems like the most efficient approach, revertingng only the changes to Spring beans instead of recreating the entire context.
upvoted
0
times
...
Demetra
8 days ago
I disagree, I believe the correct answer is B.
upvoted
0
times
...
Larue
9 days ago
Option B makes the most sense to me. The docs clearly state that @DirtiesContext will recreate the ApplicationContext after the test method, not before.
upvoted
0
times
...
Kati
13 days ago
I think the answer is A.
upvoted
0
times
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Lizette
1 days agoLynelle
2 days agoKati
5 days agoMiles
8 days agoDemetra
8 days agoLarue
9 days agoKati
13 days ago