You need to sign in to do that
Don't have an account?
enrydev
Test class for schedulable interface
How can test this class?
global class CustomerPortalRevokeSchedulable implements Schedulable { global void execute(SchedulableContext c) { CustomerPortalRevokeBatch theC = new CustomerPortalRevokeBatch(); Database.executeBatch(theC); } }
Thanks in advantage for any advice.
You need to call the scheduled task directly, and then use Start and Stop test to execute/simulate the logic. More info and code samples here:
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm