A developer has a single custom controller class that works with - ProProfs Discuss
Topics
Products
Follow Us:

A developer has a single custom controller class that works with aVisualforce to support creating and editing multiple sObjects. Thewizard accepts data from user inputs across multiple Visualforcepages and from a parameter on the initial URL.Which statements is unnecessary inside the unit test for thecustom controller?



A. ApexPages.currentPage().getParameter.put(‘input’,’Testvalue’)
B. String nextPage = controller.save().getUrl();
C. Public ExtendedController(ApexPages.StandardController cntrl) {}
D. Test.setCurrentPage(PageRef)

This question is part of Exam ng Pabebe Girls
Asked by Catherine halcombe, Last updated: May 19, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Apr 15, 2017

ApexPages.currentPage().getParameter.put(‘input’,’Testvalue’)
1
 2

matFio

MatFio

Replied on Aug 15, 2017

The correct answer is C! As you can see at the test controller example provided by salesforce: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_controller_error_handling.htm

matFio

MatFio

Replied on Aug 15, 2017

John , kill yourself!

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.