Which three statements are useful inside the unit test to effectively test the custom controller?

A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple subjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.

Which three statements are useful inside the unit test to effectively test the custom controller? Choose 3 answers
A . insert pageRef.
B . Test.setCurrentPage(pageRef);
C . public ExtendedController(ApexPages StandardController cntrl) { }
D . ApexPages.CurrentPage().getParameters().put(‘input’, ‘TestValue’);
E . String nextPage – controller.save().getUrl();

Answer: B,D,E

Latest PDI Dumps Valid Version with 191 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments