Ask Question

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

A. ApexPages. currentPage (). getParameter. put ('input','Testvalue')

B. String nextPage = controller. save (). getUrl ();

C. Public ExtendedController (ApexPages. StandardController cntrl) {}

D. Test. setCurrentPage (PageRef)

+4
Answers (1)
  1. 2 November, 18:45
    0
    The correct option to the following question is B.) String nextPage = controller. save (). getUrl ();.

    Explanation:

    Custom Controller class is the Apex class by which implements all the logic's to the page without the leveraging the controller.

    We use the custom controller when we wants the Visualforce pages for run entirely in the system modes and it does not the enforce permissions and the field level securities of a current user.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Which statements is unnecessary inside the unit test for thecustom controller? A developer has a single custom controller class that works ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers