ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 213 - Certified Platform Developer II discussion

Report
Export

How should a developer verify that a specific Account record is being tested in a test class for a visualforce controller?

A.
Insert the Account in the test class, instantiate the page reference in the test class, then use System.currentPageReference().getParameters{}.put() to set the Account ID.
Answers
A.
Insert the Account in the test class, instantiate the page reference in the test class, then use System.currentPageReference().getParameters{}.put() to set the Account ID.
B.
Instantiate the page reference in the test class, insert the Account in the test class, then use seeAHData-true to view the Account.
Answers
B.
Instantiate the page reference in the test class, insert the Account in the test class, then use seeAHData-true to view the Account.
C.
Insert the Account into Salesforce, instantiate the page reference in the test class, then use System.setParentRecordId().get() to set the Account ID.
Answers
C.
Insert the Account into Salesforce, instantiate the page reference in the test class, then use System.setParentRecordId().get() to set the Account ID.
D.
Instantiate the page reference in the test class, insert the Account in the test class, then use System.setParentRecordld().get() to set the Account ID.
Answers
D.
Instantiate the page reference in the test class, insert the Account in the test class, then use System.setParentRecordld().get() to set the Account ID.
Suggested answer: A
asked 23/09/2024
Vladimir Litvinenko
29 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first