Skip to Content
Mastering Apex Programming - Second Edition
book

Mastering Apex Programming - Second Edition

by Paul Battisson
November 2023
Intermediate to advanced content levelIntermediate to advanced
394 pages
10h 14m
English
Packt Publishing
Content preview from Mastering Apex Programming - Second Edition

5

Testing Apex Code

In the chapters so far, we have discussed a number of ways in which we can efficiently stop, debug, and capture errors within our applications to make them more robust and scalable. In this chapter, we will discuss Apex testing, which is a key part of any application’s development as it is the earliest opportunity that a developer gets to capture errors and avoid exceptions occurring in an ongoing manner.

In this chapter, we will discuss the following topics:

  • Understanding the importance of testing as a practice when developing Apex code
  • The Test Data Factory pattern and the benefits of this pattern in developing test data
  • Loading in test data using the Test.loadData method and the benefits this provides
  • Using static resources ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Apex Programming

Mastering Apex Programming

Paul Battisson
Learning Apex Programming

Learning Apex Programming

Matthew Kaufman, Michael Wicherski
MuleSoft for Salesforce Developers - Second Edition

MuleSoft for Salesforce Developers - Second Edition

Akshata Sawant, Arul Christhuraj Alphonse
Salesforce for Beginners - Second Edition

Salesforce for Beginners - Second Edition

Sharif Shaalan, Timothy Royer

Publisher Resources

ISBN: 9781837638352