Salesforce Certified Platform Developer II (Plat-Dev-301) Exam - Topic 1 Question 81 Discussion
A developer has working business logic code, but sees the following error in the test class:You have uncommitted work pending. Please commitor rollback before calling out.What is a possible solution?
B) Use mast. T=RunningTes={} before making the callout to bypass it in test execution,
A) Call support for help with the target endpoint, as It is likely an external code error.
C) Set seeAllData to true the top of the test class, since the code does not fall in practice.
D) Rewrite the business logic and test classes with @Testvisible set on the callout.
Marylou
6 months agoBernardo
7 months agoDanica
7 months agoAlayna
7 months agoEileen
7 months agoKathrine
7 months agoMa
8 months agoDong
8 months agoElliot
8 months agoEmeline
8 months agoTeresita
8 months agoBettyann
8 months agoRolande
8 months agoArminda
8 months agoAbraham
8 months ago