| | |
| | | transfer.Internal_Value__c = '消化科'; |
| | | insert transfer; |
| | | BatchIF_Log__c iflog = new BatchIF_Log__c(); |
| | | iflog.Log__c = '{"GeData":[{"HospitalInfoData":[{"StrategicDeptCode":"","Province":"CN-05","ParentCode":"360155呼吸科","HospitalRank":"L","HospitalName":"忻州市二八二医院 呼吸科 呼吸一科","HospitalCode":"","DeptType":"BF","DeptCode":"8087357","City":"CN-0567","Area":"3.西北","Accounttype":"3"}],"DealerInfoData":[]}]}'; |
| | | iflog.Log__c = '{"GeData":[{"HospitalInfoData":[{"StrategicDeptCode":"","Province":"CN-05","ParentCode":"360155呼吸科","HospitalRank":"L","HospitalName":"忻州市二八二医院 呼吸科 呼吸一科","HospitalCode":"","DeptType":"BF","DeptCode":"8087357","City":"CN-0567","Area":"3.西北","Accounttype":"3","HospitalLevel":"一级甲"}],"DealerInfoData":[]}]}'; |
| | | iflog.Type__c = '601test'; |
| | | insert iflog; |
| | | } |
| | |
| | | static void testcallout4() { |
| | | // BatchIF_Log__c iflog = [select id from BatchIF_Log__c where Type__c = '601test']; |
| | | // NFM601Controller.ManualExecute(iflog.Id); |
| | | Test.startTest(); |
| | | Database.executeBatch(new Sfdc2PoAccountBatch(),100); |
| | | Test.stopTest(); |
| | | } |
| | | |
| | | @isTest |