Salesforce
CRT-450 · Question #216
A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing…
The correct answer is A. Use a Test Date Factory class. C. Use the Test. leadtear{} method. See the full explanation below for the reasoning.
Question
A developer at AW Computing is tasked to create the supporting test class for a programmatic customization that leverages records stored within the custom object, Pricing Structure c. AW Computing has a complex pricing structure for each item on the store, spanning more than 500 records. Which two approaches can the developer use to ensure Pricing _Structure__c records are available when the test class is executed? Choose 2 answers
Options
- AUse a Test Date Factory class.
- BUse the @raTeat (seeAllData=true) annotation.
- CUse the Test. leadtear{} method,
- DUse without shering on the class declaration.
How the community answered
(24 responses)- A71% (17)
- B21% (5)
- D8% (2)
Community Discussion
No community discussion yet for this question.