You need to sign in to do that
Don't have an account?
RichardR1
help create test class please
Hello, I am just learning development but I need to be able to use my custom controller I created for use in a visualforce page in production. I can't get past code coverage failure when I try to deploy. Not sure if there's something wrong with my custom controller. I tried all the existing test classes available in production. Below is the code for my controller:
public class MyController { public ApexPages.StandardController sc; public MyController(ApexPages.StandardController sc) { this.sc = sc; } public void quicksave() { AVTRRT__Job_Applicant__c j = (AVTRRT__Job_Applicant__c) sc.getRecord(); update j.AVTRRT__Contact_Candidate__r; } }
All Answers
NOTE: The code provided is an example. You'll need to review and make modifications for your organization.