The TestDataFactory class is a special type of class—it is a public class that is annotated with isTest and can be accessed only from a running test. Test utility classes contain methods that can be called by test methods to perform useful tasks, such as setting up test data. Test utility classes are excluded from the org’s code size limit.
Resources:
Using the isTest(SeeAllData=True) Annotation - https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_testing_seealldata_using.htm
Create Test Data for Apex Tests (Trailhead) - https://trailhead.salesforce.com/en/content/learn/modules/apex_testing/apex_testing_data
In this lesson, we test asynchronous Apex.
Resource:
Testing Queuable Apex - https://trailhead.salesforce.com/en/content/learn/modules/asynchronous_apex/async_apex_queueable#testing-queueable-apex
This is the final challenge of this course.
Resources:
Install Setup Components - Setup: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3h000004slu1AAA
Opportunities, Pricebooks and Products Overview - https://help.salesforce.com/articleView?id=sf.sales_core_turn_opptys_into...
In this lesson, we check our work for the fifth and final challenge in this course.
Resource:
Install Example Solution - Solution: https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3h000004slxtAAA