Salesforce
PDII · Question #254
A developer has a Visualforce page that automatically assigns ownership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct…
The correct answer is C. The test class does not retrieve the updated value from the database. See the full explanation below for the reasoning.
Question
A developer has a Visualforce page that automatically assigns ownership of an Account to a queue upon save. The page appears to correctly assign ownership, but an assertion validating the correct ownership fails. What can cause this problem?
Options
- AThe test class does not use the Bulk API for loading test data.
- BThe test class does not use the seeAllData=true annotation.
- CThe test class does not retrieve the updated value from the database.
- DThe test class does not implement the Queueable interface.
How the community answered
(22 responses)- A5% (1)
- B5% (1)
- C73% (16)
- D18% (4)
Community Discussion
No community discussion yet for this question.