function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jeff JobsJeff Jobs 

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 :)
YuchenYuchen
Maybe you can check this link: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

 
Jeff JobsJeff Jobs
Yuchen,

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.