You need to sign in to do that
Don't have an account?

Test Class for Schedulable Batch Apex
I'm new to Schedulable Apex and Batch Apex. I was able to write a Test Class for my Batch Apex, but I'm having trouble writing a Test Class for the code below that schedules my Batch Apex:
global class PropertyLedgerScheduledActual implements Schedulable {
global void execute(SchedulableContext SC) {
PropertyLedgerBatchActual plb = new PropertyLedgerBatchActual();
Database.executeBatch(plb);
}
}
If someone could reply with the best practices of writing a test class for this type of Schedulable Apex, it would be greatly appreciated :)
global class PropertyLedgerScheduledActual implements Schedulable {
global void execute(SchedulableContext SC) {
PropertyLedgerBatchActual plb = new PropertyLedgerBatchActual();
Database.executeBatch(plb);
}
}
If someone could reply with the best practices of writing a test class for this type of Schedulable Apex, it would be greatly appreciated :)
Thanks for your response. Yes I've gone through that. I suppose I was looking for some practical advice from someone that has actually gone through this as opposed to a reference document.