You need to sign in to do that
Don't have an account?
Chris Marzella
What is wrong with this simple test class?
@IsTest public class TestNewUser{ static TestNewUserMethod void insertLead(){ Lead l = new Lead(); l.FirstName = 'Apex'; l.LastName = 'Trigger'; l.Company = 'Admins Who Code'; l.LeadStatus = 'Open - Not Contacted'; insert l; } }[Error] Error: Compile Error: unexpected token: 'insertLead' at line 3 column 34
1. use of TestNewUserMethod
2. l.LeadStatus as field API name is Status so i change dit to l.Status
Thanks
Shashikant
All Answers
1. use of TestNewUserMethod
2. l.LeadStatus as field API name is Status so i change dit to l.Status
Thanks
Shashikant
TestMethod is sort of identifier for a method that it is a method that will be run when you hit Run Test on a apex class.
If above helped you then please select as Answer so it could benifit others if they face same issue.
Thanks
Shashikant