function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matrix ReturnsMatrix Returns 

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]; }

Matrix ReturnsMatrix Returns
this my constructor and i want to test this using test class how to do
Raghu NaniRaghu Nani
yes just u call this class from your test class that is enough....
Matrix ReturnsMatrix Returns
I did this .....................................WizardController controller1=new WizardController();
the error is below:
Method does not exist or incorrect signature: void WizardController() from the type WizardController at line 34 column 28
Hi Rajdeep,
There is no need to call the constructor. You can just create a instance for your class like this 
WizardController controller1=new WizardController();
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,