Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. @isTest
  2.  
  3. public class BatchSkillExcalationUpdaterTest {
  4. static testMethod void ValidateUpdates() {
  5.  
  6. ...
  7. EscalationSkillUpdater SkillBatch = new EscalationSkillUpdater();
  8. system.debug(logginglevel.FINEST, 'BATCHING...');
  9. Database.executeBatch(SkillBatch);
  10. system.debug(logginglevel.FINEST, 'FINISHED BATCHING.');
  11. ...
  12. }
  13. }
  14.  
  15. global class EscalationSkillUpdater implements Database.Batchable <sObject> {
  16. global Database.QueryLocator start (Database.BatchableContext BC) {
  17. ...
  18. return Database.getQueryLocator(query);
  19. }
  20.  
  21. global void execute (Database.BatchableContext BC, list<SkillEscalationChangeRecord__c> Data) {
  22. ...
  23. System.debug(logginglevel.FINEST, 'FLAG');
  24. update Data;
  25. }
  26.  
  27. global void finish (Database.BatchableContext BC) {}
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement