Apex Specialist - Challenge 6
Test Scheduling logic Hi Rangers , Great going !!! Time to move forward with step 5, 1. Apex Class Go to Developer Console >>> File >>> Open >>> Apex Class Click on WarehouseSyncScheduleTest class >>> Open A template of the apex class will be opened, write your code there- @ isTest public class WarehouseSyncScheduleTest { @ isTest static void WarehousescheduleTest (){ String scheduleTime = '00 00 01 * * ?' ; Test . startTest (); Test . setMock ( HttpCalloutMock . class , new WarehouseCalloutServiceMock ()); String jobID = System . schedule ( 'Warehouse Time To Schedule to Test' , scheduleTime, new WarehouseSyncSchedule ()); Test . stopTest (); //Contains schedule information for a scheduled job. CronTrigger i...