nerdexam
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)
  • A
    71% (17)
  • B
    21% (5)
  • D
    8% (2)

Community Discussion

No community discussion yet for this question.

Full CRT-450 Practice