| | |
| | | @isTest |
| | | private class SBG007TriggerHandlerTest |
| | | { |
| | | //add sushanhu for pipl 20220415 |
| | | @testSetup |
| | | static void makaDate(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration(); |
| | | } |
| | | //add sushanhu for pipl 20220415 |
| | | // static testMethod void itShould(){ |
| | | // List<RecordType> rectIE = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = 'Customer IE']; |
| | | // Account accIE = new Account( |
| | |
| | | // } |
| | | |
| | | static testMethod void itShould2(){ |
| | | |
| | | List<RecordType> rectIE = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = 'Customer IE']; |
| | | Account accIE = new Account( |
| | | Name = '*', |
| | |
| | | System.assertEquals('', SBG007TriggerHandler.debug_msg); |
| | | |
| | | } |
| | | |
| | | static testMethod void itShould1(){ |
| | | BatchIF_Log__c iflog = new BatchIF_Log__c(); |
| | | iflog.Log__c = '{"GeDatas":{"Monitoring":{"TransmissionDateTime":"202108250938","Text":"","Tag":"MSGH","Sender":"8405","Receiver":"1330","NumberOfRecord":"1","MessageType":"SBG027","MessageGroupNumber":"20210000465499"},"GeData":[{"ZNMPA":"N","TradeType":"Taxation","SpecialWarranty":null,"SpecialDeliveryAddress":"3000002093,C-2018-72066","ServiceFee":null,"SalesChannel":"41","SalesAccountCode":"76002795","PurposeOfAdvice":null,"ProductSegment":"BS","PaymentCondition":"ZZTT","Other3":"null,null","Other2":"跨省份合作项目","Other1":"test,dealer","OrderCode":"00050193","OpportunityCode":"O-2021-115172","OlympusPriceBeforeDiscount":null,"OlympusContractPrices":729412.00,"MachineParts":"Machine","GeDataDetails":[{"ItemQuantity":20,"ItemCode":"000000000006498300","DetailLine":10},{"ItemQuantity":20,"ItemCode":"N2664900","DetailLine":20}],"ForeignTradeCompany":null,"EndUser":"C-2016-25119","Discount":49.00,"DeliveryDate":"20210825","DealerSalesStaffName":"a","DealerCode":"3000002093","CoopAgentPCT":"50","CoopAgent":"A-2021-120990"}]}}'; |
| | | insert iflog; |
| | | SBG007TriggerHandler.execute(iflog,null); |
| | | } |
| | | |
| | | } |