How should a develo...
 
Notifications
Clear all

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

1 Posts
1 Users
0 Likes
249 Views
(@tivisantwan)
Noble Member
Joined: 2 years ago
Posts: 716
Topic starter  

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.
  • 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.
  • D . Create all test data in the test class, invoke Test.startTest() and Test.stopTest() and then perform assertions,

Show Answer Hide Answer

Suggested Answer: D

   
Quote

Latest Salesforce PDII Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: