You need to sign in to do that
Don't have an account?
sweta kumari 55
How to write test case for this code?
How to write test case for this code?
global void execute(SchedulableContext sc){
Database.executeBatch(new AESL_BatchForSyncMockToErp( setOfErIds ));
System.abortJob(sc.getTriggerId());
}
global void execute(SchedulableContext sc){
Database.executeBatch(new AESL_BatchForSyncMockToErp( setOfErIds ));
System.abortJob(sc.getTriggerId());
}
Refer the below link have solution for similar kind of issue.
https://salesforce.stackexchange.com/questions/173085/system-abortjob-from-apex-test-method
Thanks!!