public WizardController (){ leadObj = [select id, email,firstname, lastname,States__c,Work_Phone_Number__c,Work_Phone_Ext__c,Home_Phone_Number__c, Country__c from Lead where email =:UserId LIMIT 1]; }
I did this .....................................WizardController controller1=new WizardController(); controller1.WizardController(); the error is below: Method does not exist or incorrect signature: void WizardController() from the type WizardController at line 34 column 28
and just run the test class. The code coverage will include constructor as well. Make sure there is required data created in the Test Class as yiu are querying Lead records in the constructor.
controller1.WizardController();
the error is below:
Method does not exist or incorrect signature: void WizardController() from the type WizardController at line 34 column 28
There is no need to call the constructor. You can just create a instance for your class like this and just run the test class. The code coverage will include constructor as well.
Make sure there is required data created in the Test Class as yiu are querying Lead records in the constructor.
Let us know if that helps you.
Best Regards,
BALAJI