高章伟
2023-03-03 d8dc84a3d56df839895f1c417a4d9cbee763d262
force-app/main/default/classes/NewAndEditLeadControllerTest.cls
@@ -14,10 +14,12 @@
        strList.add('Lead');
        strList.add('Contact');
        strList.add('Inquiry_form__c');
        strList.add('LeadV2');
        TestDataUtility.CreatePIPolicyConfigurations(strList);
    }
    static testMethod void testMethod1() {
        Test.setMock(HttpCalloutMock.class, new TestDataUtility.CreateMetaDataUtilityHttpMock());
        Test.startTest();
        Lead leadTest = new Lead();
        Contact cont = new Contact();
@@ -34,12 +36,6 @@
    static testMethod void testMethod3() {
        Lead leadTest = new Lead();
        String url = ApexPages.currentPage().getParameters().put('CF00N10000006ps6f_lkid','000000000000000');
        // ApexPages.currentPage().getParameters().put('CF00N10000002CvC5_lkid','000000000000000');
        // ApexPages.currentPage().getParameters().put('CF00N10000002CvC5','000000000000000');
        // ApexPages.currentPage().getParameters().put('CF00N10000002CvC5','000000000000000');
        url = ApexPages.currentPage().getParameters().put('RecordType','01210000000QiRf');
        Test.startTest();
        try{