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 Account object, many of the test methods fail.



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

This question is part of Exam ng Pabebe Girls
Asked by Wyatt Williams, Last updated: Apr 27, 2020

+ Answer
Request

1 Answer

Wyatt Williams

Wyatt Williams

Answered Aug 18, 2017

Create a method that loads valid Account records from a Static Resource, and call this method within test methods.
Create a method that creates valid Account records, and call this method from 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.