From 5835379ec30b1667c4e522db9d294c9b7bb8633a Mon Sep 17 00:00:00 2001
From: buli <137736985@qq.com>
Date: 星期二, 26 四月 2022 12:00:31 +0800
Subject: [PATCH] SSBG Back up
---
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