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/AWSServiceToolTest.cls | 23 +++++++++++++---------- 1 files changed, 13 insertions(+), 10 deletions(-) diff --git a/force-app/main/default/classes/AWSServiceToolTest.cls b/force-app/main/default/classes/AWSServiceToolTest.cls index 8bb1fdb..81d5e73 100644 --- a/force-app/main/default/classes/AWSServiceToolTest.cls +++ b/force-app/main/default/classes/AWSServiceToolTest.cls @@ -1,6 +1,6 @@ @isTest private class AWSServiceToolTest { - /*static testMethod void testMethod1() { + static testMethod void testMethod1() { TestDataUtility.CreatePIPolicyConfiguration(); Account acc = TestDataUtility.CreateAccounts(1)[0]; Map<String,Object> accMap = new Map<String,Object>(); @@ -12,7 +12,8 @@ PIHelper.getPIIntegrationInfo('Document'); Test.startTest(); - // AWSServiceTool.getAWSToken(); + AWSServiceTool.getAWSServiceStatus(); + AWSServiceTool.getAWSToken(); Set<String> dataids = new Set<String>(); String data = '12345678'; @@ -21,8 +22,8 @@ AWSServiceTool.deleteFileAddress(dataids); Test.stopTest(); - }*/ - static testMethod void testMethod2() { + } + /*static testMethod void testMethod2() { // TestDataUtility.CreatePIPolicyConfiguration(); Account acc = TestDataUtility.CreateAccounts(1)[0]; Map<String,Object> accMap = new Map<String,Object>(); @@ -33,11 +34,13 @@ Test.startTest(); AWSServiceTool.getAWSToken(); Test.stopTest(); - } - /*static testMethod void testMethod3() { - Test.startTest(); - AWSServiceTool.getNoPIContact('Test',''); - AWSServiceTool.getNoPIContact('','0010l00001PQFkhAAH'); - Test.stopTest(); }*/ + static testMethod void testMethod3() { + String searchContactName = 'test'; + String accountId = '0010l00001PQFkhAAH'; + + Test.startTest(); + AWSServiceTool.getNoPIContact(searchContactName,accountId); + Test.stopTest(); + } } \ No newline at end of file -- Gitblit v1.9.1