@isTest public class DeleteFileSchedulableTest { @TestSetup static void makeData(){ List strList= new List(); strList.add('Document'); TestDataUtility.CreatePIPolicyConfigurations(strList); Transaction_Log__c traLog = new Transaction_Log__c(); traLog.AWS_Data_Id__c = '123'; traLog.Module__c = '签收单附件删除'; traLog.Status__c = 'In Process'; insert traLog; } static testMethod void testMethod1() { String CRON_EXP = '0 0 0 3 9 ? 2099'; System.Test.startTest(); Map accMap = new Map(); accMap.put('object','vjdoneqvds'); String mapJson = JSON.serialize(accMap); Test.setMock(HttpCalloutMock.class, new TestDataUtility.BaseHttpMock(mapJson,'0','200')); system.schedule('DeleteFileSchedulableTest', CRON_EXP, new DeleteFileSchedulable()); System.Test.StopTest(); } }