Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam PDII All Questions
Exam PDII All Questions

View all questions & answers for the PDII exam

Salesforce Developers PDII Question # 47 Topic 5 Discussion

PDII Exam Topic 5 Question 47 Discussion:
Question #: 47
Topic #: 5

Consider the following code snippet:

PDII Question 47

A developer created the following test class to provide the proper code coverage for the snippet above:

PDII Question 47

However, when the test runs, no data is returned and the assertion fails.

Which edit should the developer make to ensure the test class runs successfully?


A.

Implement the without sharing keyword in the searchFeaturs Apex class.


B.

Implement the seeAllData=true attribute in the @1sTest annotation.


C.

Enclose the method call within Test. startbest i) and @Test_stopTast |).


D.

Implement the setFixedSearchResult= method in the test class.


Get Premium PDII 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.