| | |
| | | //新增经销商和契约 |
| | | @isTest |
| | | static void insertContactTest(){ |
| | | ControllerUtil.EscapeNFM001Trigger = true; |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | | StaticParameter.EscapeAccountTrigger = true; |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | | |
| | | |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | |
| | | System.assertEquals('Testaccount0012',myAccount1.Name); |
| | | System.assertEquals('1',myAccount1.Sap2sfdcDealers_ModifycationLogo__c); |
| | | |
| | | // 2021-03-11 mzy add SFDC合并调查 start |
| | | Database.executeBatch(new Sfdc2SapDealersContractBatch(true)); |
| | | // 2021-03-11 mzy add SFDC合并调查 end |
| | | Id execBTId = null; |
| | | System.Test.StartTest(); |
| | | execBTId = Database.executeBatch(new Sfdc2SapDealersContractBatch()); |
| | | System.Test.StopTest(); |
| | | |
| | | } |
| | | |