Test class for Schedulable class in Salesforce

Sample :

@istest
public with sharing class SampleTest {
    static testmethod void testSample() {
        Test.startTest();
        Schedulable_Class  obj = new Schedulable_Class();
        obj.execute(null);
        Test.stopTest();
    }

}

Cheers!!!

No comments:

Post a Comment