ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 210 - Certified Platform Developer II discussion

Report
Export

A developer wrote a trigger on Opportunity that will update a custom Last Sold Date field on the Opportunity's Account whenever an Opportunity is dosed. In the test class for the trigger, the assertion to validate the Last Sold Date field fails.

What might be causing the failed assertion?

A.
The test class has not defined an Account owner when inserting the test data.
Answers
A.
The test class has not defined an Account owner when inserting the test data.
B.
The test class has not re-queried the Account record after updating the Opportunity.
Answers
B.
The test class has not re-queried the Account record after updating the Opportunity.
C.
The test class has not implemented seeAIIData-truwh the test method.
Answers
C.
The test class has not implemented seeAIIData-truwh the test method.
D.
The test class is not using System.runAs() to run tests as a Salesforce administrator.
Answers
D.
The test class is not using System.runAs() to run tests as a Salesforce administrator.
Suggested answer: B
asked 23/09/2024
Tracy Nicholas
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first