You need to sign in to do that
Don't have an account?
Rana Roy
Help required on Test Class
Developers,
Can you please help me to write the Test Class of the following Class?
Thanks in advance
Can you please help me to write the Test Class of the following Class?
public class LeadSearchController { public Lead leadRecord {get; set;} public List<Lead> leadList {get; set;} public LeadSearchController(ApexPages.StandardController controller) { leadRecord = new Lead(); leadList = new List<Lead>(); } public void getLeadData() { if(leadRecord.Rating != null){ leadList = [SELECT Id, Name, Email, Rating FROM Lead WHERE Rating != null AND Rating =: leadRecord.Rating]; } } }
Thanks in advance
-Thanks
Ashlekh Gera
All Answers
-Thanks
Ashlekh Gera
Use this code u can get code coverage .
Regards ,
Harish.R
Harish, I am getting message:
Thanks to both of you