What can be done to resolve the failures and reduce the number of - ProProfs Discuss
Topics
Products
Follow Us:

What can be done to resolve the failures and reduce the number of code changes needed for future validation rules?
An org has different Apex Classes that provide Account -related functionality. After a new validation rule is added to the object, many of the test methods fail.



A. Create a method that creates valid Account records, and call this method from within test methods.
B. Create a method that loads valid Account records from a Static Resource, and call this method within test methods.
C. Create a method that performs a callout for a valid Account record, and call this method from within test methods.
D. Create a method that queries for valid Account records, and call this method from within test methods.

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

+ Answer
Request

1 Answer

Wyatt Williams

Wyatt Williams

Answered Jun 03, 2018

Create a method that creates valid Account records, and call this method from within test methods.
Create a method that loads valid Account records from a Static Resource, and call this method within test methods.

####
 

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.