From cc266a1e4080bb3ecc47ea4a202dd549545111e1 Mon Sep 17 00:00:00 2001
From: 游畅 <youchang@prec-tech.com>
Date: 星期六, 29 四月 2023 16:10:52 +0800
Subject: [PATCH] 贸易合规20230429

---
 force-app/main/default/classes/NewAndEditLeadControllerTest.cls |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/force-app/main/default/classes/NewAndEditLeadControllerTest.cls b/force-app/main/default/classes/NewAndEditLeadControllerTest.cls
index 81b8b34..9aec75f 100644
--- a/force-app/main/default/classes/NewAndEditLeadControllerTest.cls
+++ b/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{

--
Gitblit v1.9.1