Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Exam PDI All Questions
Exam PDI All Questions

View all questions & answers for the PDI exam

Salesforce Developers PDI Question # 43 Topic 5 Discussion

PDI Exam Topic 5 Question 43 Discussion:
Question #: 43
Topic #: 5

A developer needs to create a baseline set of data (Accounts, Contacts, Products, Assets) for an entire suite of Apex tests allowing

them to test isolated requirements for various types of Salesforce cases.

Which approach can efficiently generate the required data for each unit test?


A.

Create a mock using the HttpcalloutMock interface.


B.

Use @TestSetup with a void method.


C.

Add @IsTest (seeAllData=true) at the start of the unit test class.


D.

Create test data before Test .startTest() in the unit test.


Get Premium PDI Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.