ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 227 - Certified Platform Developer II discussion

Report
Export

How should a developer assert that a trigger with an asynchronous process has successfully run?

A.
Create at test data in the test class, use System.runAs() to invoke the trigger, then perform assertions.
Answers
A.
Create at test data in the test class, use System.runAs() to invoke the trigger, then perform assertions.
B.
Insert records into Salesforce, use seeAllData-true, then perform assertions.
Answers
B.
Insert records into Salesforce, use seeAllData-true, then perform assertions.
C.
Create all test data, use @future In the test class, then perform assertions.
Answers
C.
Create all test data, use @future In the test class, then perform assertions.
D.
Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,
Answers
D.
Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,
Suggested answer: D
asked 23/09/2024
Latonya Ganison
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first