You need to sign in to do that
Don't have an account?
vikas rathi91
how to cover these line I am try but not success to cover these line
@isTest
public class EmailMessageTriggerHandlerTest{
public static testMethod void test(){
Contact objCon = new Contact();
objCon.FirstName = 'Manas';
objCon.LastName = 'Manas';
objCon.AccountId = objacc.id;
objCon.Email = 'ab@gmail.com';
objCon.Phone = '(987) 456-4567';
objCon.Five9_Source__c = 'Outdoor_B2B';
objCon.MailingState = 'sd';
insert objCon;
Task t = new Task();
t.OwnerId = UserInfo.getUserId();
t.whoId= objcon.id;
t.Subject='[Outreach] [Email] [Out] Hello';
t.Status='Not Started';
t.Priority='Normal';
insert t;
}
}
how to cover the test class
how to cover these line I am try but not success to cover these line
@isTest
public class EmailMessageTriggerHandlerTest{
public static testMethod void test(){
Contact objCon = new Contact();
objCon.FirstName = 'Manas';
objCon.LastName = 'Manas';
objCon.AccountId = objacc.id;
objCon.Email = 'ab@gmail.com';
objCon.Phone = '(987) 456-4567';
objCon.Five9_Source__c = 'Outdoor_B2B';
objCon.MailingState = 'sd';
insert objCon;
Task t = new Task();
t.OwnerId = UserInfo.getUserId();
t.whoId= objcon.id;
t.Subject='[Outreach] [Email] [Out] Hello';
t.Status='Not Started';
t.Priority='Normal';
insert t;
}
}
in [Outreach] [Email] [Out] Hello string