List of questions
Related questions
Question 257 - Certified Platform Developer II discussion
A developer has a test class that creates test data before making a mock call-out, but now receives a you have uncommitted work pending. Please commit or callout before calling out error.
What step should be taken to resolve the error?
A.
Ensure both the insertion and mock callout occur after the Test.stopTest().
B.
Ensure the records are inserted before the Test.startTest() statement and the mock callout occurs within a method annotated with @testSetup.
C.
Ensure both the insertion and mock callout occur after the Test.startTest().
D.
Ensure the records are inserted before the Test.startTest() statement and the mock callout after the Test.startTest().
Your answer:
0 comments
Sorted by
Leave a comment first