December 2, 2013

Test class for Schedulable class in Salesforce

Sample :

  1. @istest  
  2.   
  3. public with sharing class SampleTest {  
  4.   
  5.     static testmethod void testSample() {  
  6.   
  7.         Test.startTest();  
  8.         Schedulable_Class obj = new Schedulable_Class();  
  9.         obj.execute(null);  
  10.         Test.stopTest();  
  11.   
  12.     }  
  13.   
  14. }  

No comments:

Post a Comment