buli
2022-05-14 ead4df22dca33a867279471821ca675f91dec760
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();
    }
}