@isTest private class NFM613ControllerTest { static testMethod void testMethod1() { List repairSoIdList = new List(); RepairSubOrder__c subRepair = new RepairSubOrder__c(); subRepair.Name = 'test001'; subRepair.Status__c = '待处理'; insert subRepair; repairSoIdList.add(subRepair.Id); BatchIF_Log__c iflog = new BatchIF_Log__c(); iflog.Type__c = 'NFM613'; iflog.Log__c = 'callout start\n'; insert iflog; NFM613Controller.callout(iflog.Id, repairSoIdList); NFM613Controller.callout(null, repairSoIdList); } static testMethod void testMethod2() { List repairSoIdList = new List(); RepairSubOrder__c subRepair = new RepairSubOrder__c(); subRepair.Name = 'test001'; subRepair.Status__c = '待处理'; insert subRepair; repairSoIdList.add(subRepair.Id); BatchIF_Log__c iflog = new BatchIF_Log__c(); iflog.Type__c = 'NFM613'; iflog.Log__c = 'callout start\n'; insert iflog; NFM613Controller.callout(iflog.Id, repairSoIdList); NFM613Controller.callout(null, repairSoIdList); NFM613Controller.execute(iflog, null); NFM613Controller.ManualExecute(iflog.Id); } }