What is the proper process for an Apex Unit Test? - ProProfs Discuss
Topics
Products
Follow Us:

What is the proper process for an Apex Unit Test?



A. Query for test data using SeeAllData = true. Call the method being tested. Verify that the results are correct.
B. Query for test data using SeeAllData = true. Execute runAllTests(). Verify that the results are correct.
C. Create data for testing. Execute runAllTests(). Verify that the results are correct.
D. Create data for testing. Call the method being tested. Verify that the results are correct.

This question is part of Salesforce Platform Developer 1
Asked by Wyatt Williams, Last updated: Jan 21, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Apr 25, 2017

Create data for testing. Call the method being tested. Verify that the results are correct.

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.