MASTER CLASS
People throw stones at you and you convert them into milestones
Salesforce
Salesforce Concepts
Guest Posts
About Me
Thursday, 19 July 2018
How to run future method in test class
We have to use future method inside the startTest/stopTest:
Test.startTest();
myClass.futuremethod( someID );
Test.stopTest();
Test.stopTest() does not return until your future method has completed.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment