From ead4df22dca33a867279471821ca675f91dec760 Mon Sep 17 00:00:00 2001 From: buli <137736985@qq.com> Date: 星期六, 14 五月 2022 18:44:54 +0800 Subject: [PATCH] FixIssue0514 --- force-app/main/default/classes/PIHelperTest.cls | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/force-app/main/default/classes/PIHelperTest.cls b/force-app/main/default/classes/PIHelperTest.cls index 52ac40a..30dbcae 100644 --- a/force-app/main/default/classes/PIHelperTest.cls +++ b/force-app/main/default/classes/PIHelperTest.cls @@ -13,7 +13,7 @@ PIHelper.saveTransLog('module','vadsjngrqvjca','avgwshDFcxAS', 'DSAGSFBQdfdsoav','test','0','testmsg'); Test.stopTest(); } - /*static testMethod void confirmTrans() { + static testMethod void confirmTrans() { Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreatePIHelperHttpMock()); Test.startTest(); List<PIHelper.idList> idList = new List<PIHelper.idList>(); @@ -23,14 +23,14 @@ idList.add(pid); PIHelper.confirmTrans('module',1,'vadsjngrqvjca' ,'avgwshDFcxAS' ,'DSAGSFBQdfdsoav','https://sfpi-mebg-test.olympuschina.com/api/contact/insert',idList); Test.stopTest(); - }*/ - /*static testMethod void confirmFileTrans() { + } +static testMethod void confirmFileTrans() { Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreatePIHelperHttpMock()); Test.startTest(); PIHelper.confirmFileTrans('module',1,'vadsjngrqvjca' ,'avgwshDFcxAS','DSAGSFBQdfdsoav','https://sfpi-mebg-test.olympuschina.com/api/contact/insert'); Test.stopTest(); - }*/ - /*static testMethod void insertConfirmTrans() { + } +static testMethod void insertConfirmTrans() { Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreatePIHelperHttpMock()); Test.startTest(); List<PIHelper.idList> idList = new List<PIHelper.idList>(); @@ -40,6 +40,6 @@ idList.add(pid); PIHelper.insertConfirmTrans('module',1,'vadsjngrqvjca' ,'avgwshDFcxAS' ,0,'https://sfpi-mebg-test.olympuschina.com/api/contact/insert',idList); Test.stopTest(); - }*/ + } } \ No newline at end of file -- Gitblit v1.9.1