Click Here To Take Our Group Member Satisfaction Survey through January 13th!

Speeding up your Apex tests with a Mock Data Layer Pattern

Nov 4, 2021, 10:00 – 11:30 PM (UTC)

Salesforce Developer Group, Tampa, United States

Learn how to leverage a Data Layer pattern that will allow you to improve your Apex tests performance with mock data relationships.

About this event

Apex tests are essential to the overall health of your Salesforce org. The Apex testing framework enables you to write and execute tests for your Apex classes and triggers on the Lightning Platform. Apex unit tests ensure high quality for your Apex code and let you meet the requirements for deploying Apex.

It's very common to have a Test Factory for your Apex tests, creating several records, which is absolutely needed especially when testing bulk processing operations.

However, besides bulk testing, you may want to test a singular method from a Helper class or run your tests with fake data. Here, instead of inserting real records in your Salesforce org, you can use the Data Layer pattern, and implement an interface that will allow you to run tests with mock data, which makes your tests run a lot faster.

Join us to learn how to leverage this pattern to improve your Apex tests.

Speaker

  • Matheus Gonçalves

    Salesforce

    Lead Salesforce Engineer

Group Leader

  • Jason Smith

    Accounting Seed

    Director of Engineering

Powered by

Trailblazer Community logo

Trailblazer Community

Sponsor

Elements.cloud logo

Elements.cloud

CONTACT US

Join your local Trailblazer Community Group, meet other developers & get best practices for building on the App Cloud

JOIN US