Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
No Result
View All Result
Home Articles

Salesforce Winter’25 Release Notes | Development – Apex

Antonis Melakis by Antonis Melakis
February 19, 2025
in Articles, Release Notes
0 0
0
Salesforce Winter’25 Release Notes | Development – Apex
0
SHARES
1
VIEWS
Share on FacebookShare on Twitter

5. Write Mock SOQL Tests for External Objects

Increase code coverage and quality by writing better Apex unit tests for external objects and mock SOQL query responses using the new SOQL stub methods and a new test class. Use basic and joined SOQL queries against external objects and return mock records in a testing context. Apex governor limits apply to the stubbed records


How: Create mock test classes by extending the new System.SoqlStubProvider class and overriding the handleSoqlQuery() class method. Create external object records using either Test.createStubQueryRow() or Test.createStubQueryRows(). Register the mock provider in the test using Test.createSoqlStub() and execute the test code

The SOQL query must be against an external object, either directly with a FROM clause or via a subquery. These features aren’t allowed within a stub implementation

  • SOQL
  • SOSL
  • Callouts
  • Future methods
  • Queueable jobs
  • Batch jobs
  • DML
  • Platform events
Previous Consistency Improved When Iterating Sets
Next
Tags: ApexDevelopmentSalesforce Winter ’25 Release Notes
Previous Post

Salesforce Spring’25 Release Notes | Customization – General Setup

Next Post

Salesforce Winter’25 Release Notes | Salesforce Mobile App

Antonis Melakis

Antonis Melakis

Next Post
Salesforce Winter’25 Release Notes | Salesforce Mobile App

Salesforce Winter'25 Release Notes | Salesforce Mobile App

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Salesforce Summer ’25 Release: New Agentforce Capabilities and Product Enhancements to Create Richer Customer Experiences
  • Salesforce Summer’25 Release Notes | Screen Flow Updates
  • Why Agentic AI Is Gaining Traction Among Global Telecoms Looking to Reduce Churn and Reignite Growth
  • Salesforce Summer’25 Release Notes | Flow Builder Updates
  • Salesforce Spring’25 Release Notes | Flow Extensions and Management

Recent Comments

No comments to show.

Tags

Agents Analytics Apex AppExchange Artificial Intelligence Automation Awards and Recognition Configuration Customization Data Development Digital Transformation Fields Flow Actions Flow Builder General Enhancements General Mobile Updates General Setup Globalization Lightning App Builder Lightning Reports and Dashboards List Views Mobile Partnership Permissions and Sharing Sales Salesforce Flow Salesforce Mobile App Salesforce Overall Salesforce Partners Salesforce Spring ’25 Release Notes Salesforce Summer '24 Release Notes Salesforce Summer ’25 Release Notes Salesforce Winter ’25 Release Notes Screen Flow Security, Identity, and Privacy User Experience
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.