You need to sign in to do that
Don't have an account?
SUMAN KUMARI 70
Test class for the pagereference method
Hi All,
Kindly help me with the test class for the following method.
Kindly help me with the test class for the following method.
global PageReference confirmPage(){ PageReference pageRef; if (appointment.id != NULL) { pageRef = new PageReference('/apex/HAZMATconfirmationPage?appointmentId=' + appointment.id + '&cId=' + HAZMATCase.id); } else { pageRef = new PageReference('/apex/HAZMATconfirmationPage?caseId=' + HAZMATCase.id); } return pageRef; }
Controller class
Test Class
NOTE: The code provided is an example. You'll need to review and make modifications for your organization.
Let me know if this helps. If it does, please mark this answer as Best. It may help others in the community. Thank You!