Skip to main content Join us at TDX in San Francisco or on Salesforce+ on March 5-6 for the Developer Conference for the AI Agent Era. Register now.

#Mock Test0 discussing

[▶️]🔴🔥🎬 Write Mock SOQL Tests For External Objects

When we write any Apex class that involves some sort of DML operation around the External object, we need to write the test classes as well. Writing a test class is needed to make sure at least 75% of the code is covered in the test class with both positive, negative, and bulkified scenarios. In the case of SOQL statements, we normally create the test data in the test setup method and query them in the test methods. But in the case of SOQL, which involves External object, we cannot do that, and we also cannnot directly query the External objects. But test coverage is needed for the Apex class to be deployed in production. 

In Winter 25 Release, Salesforce brings the solution to this problem. Now we can write mock SOQL statements for External Objects. I will be showing that in this blog post and YouTube video.

🎬 https://youtu.be/IniZXsQbDH8

📒 https://sudipta-deb.in/2024/09/write-mock-soql-tests-for-external-objects.html

 

[▶️]🔴🔥🎬 Write Mock SOQL Tests For External ObjectsWhen we write any Apex class that involves some sort of DML operation around the External object, we need to write the test classes as well.@The Blog Group @* Release Readiness Trailblazers *

 

#Apex  #External Objects  #Winter25  #SOQL Queries  #Mock Test

0/9000

Hello everyone,

 

Just wondering whether there is a practice or mock test available for Non-Profit Cloud Consultant certification? I checked in Webassessor and there isn't one available.

7 comments
0/9000

I have cleared Service cloud certification on 30th March 2020. Enroll for webinars, understand concepts, do as much as mock test, success is yours--NVKRANGASAI

0/9000