23 lines
1.0 KiB
OpenEdge ABL
23 lines
1.0 KiB
OpenEdge ABL
@isTest
|
|
public class BatchForSendErrorMail_Test {
|
|
@isTest
|
|
public static void sendingMail(){
|
|
HIC_ShopifySync__Error_Message__c ErromessageObj = new HIC_ShopifySync__Error_Message__c();
|
|
ErromessageObj.name = 'testtt';
|
|
ErromessageObj.HIC_ShopifySync__Delivered__c = false;
|
|
ErromessageObj.HIC_ShopifySync__Error_id__c = '1213141412';
|
|
ErromessageObj.HIC_ShopifySync__Message__c= 'error message';
|
|
ErromessageObj.HIC_ShopifySync__Shopify_id__c= '1213141412';
|
|
ErromessageObj.HIC_ShopifySync__IsWebhook__c = true;
|
|
insert ErromessageObj;
|
|
|
|
HIC_ShopifySync__Email_Addresses_to_send_error_CSV__c errormail = new HIC_ShopifySync__Email_Addresses_to_send_error_CSV__c();
|
|
errormail.name = 'test@hicglobalsolutions.com';
|
|
system.assertequals('test@hicglobalsolutions.com', errormail.name);
|
|
|
|
insert errormail;
|
|
BatchForSendErrorMailNew Obj = new BatchForSendErrorMailNew();
|
|
Database.executeBatch(Obj);
|
|
}
|
|
|
|
} |